From bebce535c89e3c0fbea5aebf07d025359f004217 Mon Sep 17 00:00:00 2001 From: Christoph Rieke Date: Sat, 28 Aug 2021 20:39:17 +0200 Subject: [PATCH] fix crs instead of dummy request --- prettymaps/fetch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/prettymaps/fetch.py b/prettymaps/fetch.py index fd092f5..27ecd25 100644 --- a/prettymaps/fetch.py +++ b/prettymaps/fetch.py @@ -132,8 +132,7 @@ def get_layer(layer, **kwargs): return unary_union(ox.project_gdf(kwargs['perimeter']).geometry) # If point and radius are provided: elif 'point' in kwargs and 'radius' in kwargs: - # Dummy request to fetch CRS - crs = ox.graph_to_gdfs(ox.graph_from_point(kwargs['point'], dist = kwargs['radius']), nodes = False).crs + crs = "EPSG:4326" perimeter = get_boundary( kwargs['point'], kwargs['radius'], crs, **{x: kwargs[x] for x in ['circle', 'dilate'] if x in kwargs.keys()}