Ejemplo n.º 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)
Ejemplo n.º 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))")
Ejemplo n.º 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 ))")
Ejemplo n.º 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)))")
Ejemplo n.º 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))")
Ejemplo n.º 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)")
Ejemplo n.º 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)")
Ejemplo n.º 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)")