You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/home/watervize/river_trip_2022_map_wfl1/venv/lib/python3.9/site-packages/restapi/common_types.py", line 335, in exportFeatureSet_os
w.add_row(feat.getGeometry().asShape(), *row)
File "/home/watervize/river_trip_2022_map_wfl1/venv/lib/python3.9/site-packages/restapi/open_restapi.py", line 368, in asShape
return shapefile.Shape._from_geojson(self._native_json)
File "/home/watervize/river_trip_2022_map_wfl1/venv/lib/python3.9/site-packages/restapi/shapefile.py", line 269, in _from_geojson
geojType = geoj["type"] if geoj else"Null"
KeyError: 'type'
Updating line 269 of shapefile.py corrects the issue by setting features with malformed geometry to "Null"
In cases where the geometry of a feature in a layer is incorrectly formed at (0, 0) the package in unable to build a shapefile.
Example feature:
Updating line 269 of shapefile.py corrects the issue by setting features with malformed geometry to "Null"
from
to
The text was updated successfully, but these errors were encountered: