Skip to content

Commit

Permalink
refactor: compatibility for fiona 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Aug 13, 2019
1 parent 32db42b commit a822107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagmaps/config/config.py
Expand Up @@ -381,7 +381,7 @@ def load_shapefile(self):
self.shp_geom = []
if len(poly_shape) == 1:
# simple polygon
geom = poly_shape.next()
geom = next(iter(poly_shape))
vertices_count = len(geom["geometry"]["coordinates"][0])
self.shp_geom.append(shape(geom["geometry"]))
else:
Expand Down

0 comments on commit a822107

Please sign in to comment.