File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def geom_from_geojson(data: dict) -> dict:
8989 raise GeoJSONException ('Invalid GeoJSON: {data}' )
9090
9191 if len (features ) > 1 :
92- raise DataLossWarning (
92+ LOGGER . warning (
9393 'FeatureClass has more than one Feature, using only first'
9494 ' feature.' )
9595
Original file line number Diff line number Diff line change @@ -38,12 +38,16 @@ def test_geom_from_geojson_success(
3838 assert_geom_equal ):
3939 ggeo = geojson .as_geom (geom_geojson )
4040 assert_geom_equal (ggeo , geom_geojson )
41- #
42- # fgeo = geojson.geom_from_geojson(feature_geojson)
43- # assert_geom_equal(fgeo, geom_geojson)
44- #
45- # fcgeo = geojson.geom_from_geojson(featureclass_geojson)
46- # assert_geom_equal(fcgeo, geom_geojson)
41+
42+ fgeo = geojson .geom_from_geojson (feature_geojson )
43+ assert_geom_equal (fgeo , geom_geojson )
44+
45+ fcgeo = geojson .geom_from_geojson (featureclass_geojson )
46+ assert_geom_equal (fcgeo , geom_geojson )
47+
48+ featureclass_geojson ['features' ].append (feature_geojson )
49+ ffcgeo = geojson .geom_from_geojson (featureclass_geojson )
50+ assert_geom_equal (ffcgeo , geom_geojson )
4751
4852
4953def test_geom_from_geojson_no_geometry (feature_geojson ):
You can’t perform that action at this time.
0 commit comments