From 8c5d7d05b5931111570289819fddf27f88e2149a Mon Sep 17 00:00:00 2001 From: Christoph Rieke Date: Fri, 25 Aug 2023 15:24:07 +0200 Subject: [PATCH] osmnx deprecated renames --- prettymapp/osm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prettymapp/osm.py b/prettymapp/osm.py index 514755a..0754cf6 100644 --- a/prettymapp/osm.py +++ b/prettymapp/osm.py @@ -1,4 +1,4 @@ -from osmnx.geometries import geometries_from_polygon +from osmnx.features import features_from_polygon from osmnx import settings from geopandas import clip, GeoDataFrame from shapely.geometry import Polygon @@ -19,7 +19,7 @@ def get_osm_geometries(aoi: Polygon) -> GeoDataFrame: except TypeError: # e.g. "building": True tags[k] = v - df = geometries_from_polygon(polygon=aoi, tags=tags) + df = features_from_polygon(polygon=aoi, tags=tags) df = df.droplevel(level=0) df = df[~df.geometry.geom_type.isin(["Point", "MultiPoint"])]