diff --git a/measprocess/geospatial/process.py b/measprocess/geospatial/process.py index bd01a0245d24a736bb2b65e4f681e9a99d548468..6967f4a85d2ecf79da2b0c79ff1af54ca64c141d 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