Пример #1
0
 def test_points_in_polygon_wkt_Point():
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in, "testdata/ahn2_geometries_wkt/point.wkt", read_from_file=True)
Пример #2
0
 def test_points_in_polygon_wkt_Collection():
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in, "GEOMETRYCOLLECTION(POINT(4 6),LINESTRING(4 6,7 10))")
Пример #3
0
 def test_points_in_polygon_wkt_invalidPolygon():
     """Polygon is not closed so should raise error."""
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in,
                        "POLYGON(( 243590.0 572110.0, 243640.0 572160.0, 243700.0 572110.0, 243640.0 572060.0 ))")
Пример #4
0
 def test_points_in_polygon_wkt_MultiPolygon():
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in,
                        "MULTIPOLYGON(((1 1,5 1,5 5,1 5,1 1),(2 2, 3 2, 3 3, 2 3,2 2)),((3 3,6 2,6 4,3 3)))")
Пример #5
0
 def test_points_in_polygon_wkt_MultiLine():
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in, "MULTILINESTRING((3 4,10 50,20 25),(-5 -8,-10 -8,-15 -4))")
Пример #6
0
 def test_points_in_polygon_wkt_MultiPoint():
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in, "MULTIPOINT(3.5 5.6, 4.8 10.5)")
Пример #7
0
 def test_points_in_polygon_wkt_Line():
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in, "LINESTRING(3 4,10 50,20 25)")
Пример #8
0
 def test_points_in_polygon_wkt_Point():
     pc_in = load("testdata/AHN2.las")
     with pytest.raises(ValueError):
         select_polygon(pc_in, "POINT(6 10)")