Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix radius error in ohsome spec #67

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions ohsomeTools/gui/ohsome_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,11 @@ 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"]
ordered_layer_radii.append(int(radius))
layers = QgsProject.instance().mapLayersByName(file_name)
layers = [
layer
Expand All @@ -469,7 +466,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

Expand Down
Loading