Updated shapes parser:
ignore features without geometry
This commit is contained in:
parent
07223d6cb6
commit
95b3b20a43
|
@ -9,6 +9,7 @@ class ShapesParser(JsonParser):
|
|||
shapes = []
|
||||
if 'features' in self.__jsonData__:
|
||||
for feature in self.__jsonData__['features']:
|
||||
if feature['geometry']:
|
||||
shapes.append(shape(feature['geometry']))
|
||||
elif 'geometries' in self.__jsonData__:
|
||||
for geometry in self.__jsonData__['geometries']:
|
||||
|
|
Loading…
Reference in a new issue