Skip to content

Commit

Permalink
[Vector.__geo_interface__] return full object, not just geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed Jun 27, 2024
1 parent 145b5ee commit f0ff5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spatialist/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __geo_interface__(self):
raise RuntimeError('multiple features are currently not supported')
with self.clone() as tmp:
tmp.reproject(4326)
out = tmp.getFeatureByIndex(0).ExportToJson(as_object=True)['geometry']
out = tmp.getFeatureByIndex(0).ExportToJson(as_object=True)
return out

@staticmethod
Expand Down

0 comments on commit f0ff5ce

Please sign in to comment.