Skip to content

Commit

Permalink
fix version, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
roefem committed Jul 8, 2024
1 parent 13db5ae commit b0ac492
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion brdr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
datefmt="%d-%b-%y %H:%M:%S",
)

__version__ = "0.1.0"
__version__ = "0.1.1"
22 changes: 0 additions & 22 deletions brdr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0ac492

Please sign in to comment.