Skip to content

Commit

Permalink
if geometry is empty, return None (closes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Jul 21, 2017
1 parent 4b9d044 commit 970498d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arcgis2geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,7 @@ def arcgis2geojson(arcgis, idAttribute=None):
else:
geojson['properties'] = None

if 'geometry' in geojson and not(geojson['geometry']):
geojson['geometry'] = None

return geojson

0 comments on commit 970498d

Please sign in to comment.