From e7b8e3aa2a92678680319636826df7d5d5eac97e Mon Sep 17 00:00:00 2001 From: Lukas Eller Date: Tue, 1 Feb 2022 10:38:52 +0100 Subject: [PATCH] changed return value of geospatial process landuseclasses --- measprocess/geospatial/process.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/measprocess/geospatial/process.py b/measprocess/geospatial/process.py index bd01a02..6967f4a 100644 --- a/measprocess/geospatial/process.py +++ b/measprocess/geospatial/process.py @@ -4,6 +4,7 @@ from shapely.geometry import LineString, Point, Polygon, box from shapely.ops import unary_union from tqdm import tqdm import pandas as pd +from typing import Dict def project_onto_streets( point_series: gpd.GeoSeries, @@ -211,7 +212,7 @@ def assign_landuse_classes( cut_polygons_by_buffer: bool = False, buffer_size: int = 0, epsg: str = "EPSG:31287", -) -> gpd.GeoDataFrame: +) -> Dict: ''' Returns a DataFrame with the landuse class distribution in the area defined by the buffer_size around the passed locations Landuseclasses are defined according to the Corine Land Cover Project: @@ -276,6 +277,4 @@ def assign_landuse_classes( results[i] = first5pairs - result_df = pd.DataFrame(results).transpose() - result_df.index = point_geodataframe.index - return result_df + return results -- 2.22.0