diff --git a/tagmaps/config/config.py b/tagmaps/config/config.py index 0ca7d49..0af3870 100644 --- a/tagmaps/config/config.py +++ b/tagmaps/config/config.py @@ -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: