From ba99c802457e5a9e7afe535c298d36979134d683 Mon Sep 17 00:00:00 2001 From: Merydian Date: Thu, 9 Nov 2023 14:07:53 +0100 Subject: [PATCH 1/2] Make _get_selected_point_layers_geometries of proc provide convert_point_features_to_ohsome_bcircles with radius as int --- ohsomeTools/gui/ohsome_spec.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ohsomeTools/gui/ohsome_spec.py b/ohsomeTools/gui/ohsome_spec.py index 93f771c..82de82a 100644 --- a/ohsomeTools/gui/ohsome_spec.py +++ b/ohsomeTools/gui/ohsome_spec.py @@ -449,7 +449,6 @@ def _get_selected_point_layers_geometries(self) -> {}: for item in point_layers_list: file_name = item.name() radius = self.params["RADIUS"] - ordered_layer_radii.append(int(radius)) layers = QgsProject.instance().mapLayersByName(file_name) layers = [ layer @@ -469,7 +468,7 @@ def _get_selected_point_layers_geometries(self) -> {}: ] ordered_list_of_features.extend(features) list_of_coordinates = convert_point_features_to_ohsome_bcircles( - ordered_list_of_features, ordered_layer_radii + ordered_list_of_features, radius ) return list_of_coordinates From 4cda8dcfa858878f970c4ca1cce77df8395c28eb Mon Sep 17 00:00:00 2001 From: Merydian Date: Thu, 9 Nov 2023 14:17:51 +0100 Subject: [PATCH 2/2] Remove ordered_layer_radii list --- ohsomeTools/gui/ohsome_spec.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ohsomeTools/gui/ohsome_spec.py b/ohsomeTools/gui/ohsome_spec.py index 82de82a..a7bc385 100644 --- a/ohsomeTools/gui/ohsome_spec.py +++ b/ohsomeTools/gui/ohsome_spec.py @@ -442,10 +442,8 @@ def is_valid(self, warn: bool = False) -> bool: return True def _get_selected_point_layers_geometries(self) -> {}: - ordered_layer_radii = [] ordered_list_of_features = [] point_layers_list = [self.params["LAYER"]] - # for idx in range(point_layers_list.count()): for item in point_layers_list: file_name = item.name() radius = self.params["RADIUS"]