diff --git a/shapefile.py b/shapefile.py index 6e4674e..c0b30f3 100644 --- a/shapefile.py +++ b/shapefile.py @@ -201,6 +201,11 @@ def __init__(self, shapeType=NULL, points=None, parts=None, partTypes=None): @property def __geo_interface__(self): + + """ Case parts or points is empty """ + if not self.parts or not self.points: + return False + if self.shapeType in [POINT, POINTM, POINTZ]: return { 'type': 'Point',