Skip to content

Commit

Permalink
#115 fix for non-existant function
Browse files Browse the repository at this point in the history
  • Loading branch information
dieuska committed Jan 21, 2025
1 parent 1b13edf commit 624051c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions plugin/brdrq/brdrq_algorithm_autoupdateborders.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
from qgis.core import QgsProject
from qgis.core import QgsStyle

from .brdrq_utils import geojson_to_layer, get_workfolder
from .brdrq_utils import (
geom_qgis_to_shapely,
geojson_to_layer,
get_workfolder,
)


class AutoUpdateBordersProcessingAlgorithm(QgsProcessingAlgorithm):
Expand Down Expand Up @@ -180,7 +184,7 @@ def initAlgorithm(self, config=None):

parameter = QgsProcessingParameterNumber(
"MAX_RELEVANT_DISTANCE",
"MAX-RELEVANT_DISTANCE (meter) - Max distance to try to align on the actual GRB",
"MAX_RELEVANT_DISTANCE (meter) - Max distance to try to align on the actual GRB",
type=QgsProcessingParameterNumber.Double,
defaultValue=3,
)
Expand Down Expand Up @@ -237,7 +241,7 @@ def processAlgorithm(self, parameters, context, feedback):
return {}

id_theme = feature.attribute(self.ID_THEME_FIELDNAME)
dict_thematic[id_theme] = self.geom_qgis_to_shapely(feature.geometry())
dict_thematic[id_theme] = geom_qgis_to_shapely(feature.geometry())
# dict_thematic_properties[id_theme] = feature.__geo_interface__["properties"]
attributes = feature.attributeMap()
attributes_dict = {}
Expand Down Expand Up @@ -347,7 +351,6 @@ def _thematic_preparation(self, context, feedback, outputs, parameters):
return thematic, thematic_buffered

def prepare_parameters(self, parameters):

wrkfldr = parameters["WORK_FOLDER"]
if wrkfldr is None or str(wrkfldr) == "" or str(wrkfldr) == "NULL":
wrkfldr = self.WORKFOLDER
Expand Down

0 comments on commit 624051c

Please sign in to comment.