Skip to content

Commit

Permalink
[Vector.__geo_interface__] add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed Jun 18, 2024
1 parent 0b4f0bf commit 145b5ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spatialist/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ def __str__(self):

@property
def __geo_interface__(self):
"""
See https://gist.github.com/sgillies/2217756
Returns
-------
dict
a GeoJSON dictionary
"""
if self.nfeatures > 1:
raise RuntimeError('multiple features are currently not supported')
with self.clone() as tmp:
Expand Down

0 comments on commit 145b5ee

Please sign in to comment.