Skip to content

Commit cd727d6

Browse files
committed
Return json null value as geometry when no geometry exists for this feature
1 parent c7648eb commit cd727d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arcgis/arcgis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def esri_to_geojson(self, obj, geom_parser):
8080
return {
8181
"type": "Feature",
8282
"properties": obj.get('attributes'),
83-
"geometry": geom_parser(obj.get('geometry'))
83+
"geometry": geom_parser(obj.get('geometry')) if obj.get('geometry') else None
8484
}
8585

8686
def get_json(self, layer, where="1 = 1", fields=[], count_only=False, srid='4326'):

0 commit comments

Comments
 (0)