From b0ac49216af8f18bf74e292b68b180c13900dd87 Mon Sep 17 00:00:00 2001 From: Emrys Roef Date: Mon, 8 Jul 2024 14:39:49 +0200 Subject: [PATCH] fix version, cleanup --- brdr/__init__.py | 2 +- brdr/utils.py | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/brdr/__init__.py b/brdr/__init__.py index a366963..0c0dbb5 100644 --- a/brdr/__init__.py +++ b/brdr/__init__.py @@ -6,4 +6,4 @@ datefmt="%d-%b-%y %H:%M:%S", ) -__version__ = "0.1.0" +__version__ = "0.1.1" diff --git a/brdr/utils.py b/brdr/utils.py index 0a8641d..13ff1bd 100644 --- a/brdr/utils.py +++ b/brdr/utils.py @@ -91,28 +91,6 @@ def geojson_tuple_from_dict_theme( return tuple(feature_collections) -def geojson_tuple_from_dict_theme( - dict_theme, crs, name_id, prop_dict=None, geom_attributes=True -): - """ - get a geojson-tuple (6 geojsons) for a dictionary of theme_ids (keys) and dictionary of relevant distance-results (values) - """ - features = [[], [], [], [], [], []] - for key in dict_theme.keys(): - if prop_dict is not None and key in prop_dict: - prop_dictionary = prop_dict[key] - fcs = geojson_tuple_from_series( - dict_theme[key], crs, name_id, prop_dict=prop_dictionary - ) - for count, ft in enumerate(features): - ft.extend(fcs[count].features) - crs_geojson = {"type": "name", "properties": {"name": crs}} - feature_collections = [] - for ft in features: - feature_collections.append(FeatureCollection(ft, crs=crs_geojson)) - return tuple(feature_collections) - - def geojson_from_dict(dictionary, crs, name_id, prop_dict=None, geom_attributes=True): """ get a geojson (featurecollection) from a dictionary of ids(keys) and geometries (values)