Skip to content

Commit

Permalink
Complete functionalty
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxvdwaal committed Oct 10, 2024
1 parent b980228 commit 179652c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions BGT_loader.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __pycache__/bgt_loader_algorithm.cpython-312.pyc
Binary file not shown.
Binary file modified __pycache__/bgt_loader_provider.cpython-312.pyc
Binary file not shown.
10 changes: 6 additions & 4 deletions bgt_loader_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
QgsProcessingParameterBoolean,
QgsProcessingParameterFolderDestination,
QgsProcessingParameterNumber,
QgsProcessingParameterString,
QgsProject,
QgsVectorLayer,
QgsWkbTypes,
Expand Down Expand Up @@ -88,7 +89,7 @@ def initAlgorithm(self, config):
)

self.addParameter(
QgsProcessingParameterFeatureSource(self.POLYGON, "Select polygon")
QgsProcessingParameterFeatureSource(self.POLYGON, "Selecteer een enkele feature uit de volgende laag:")
)

self.addParameter(QgsProcessingParameterNumber(
Expand All @@ -101,8 +102,8 @@ def initAlgorithm(self, config):
for layer in self.layers:
self.addParameter(
QgsProcessingParameterBoolean(
f"include_{layer}",
f"Include {layer.replace('_', ' ').capitalize()}",
f"{layer}",
f"{layer.replace('_', ' ').capitalize()}",
defaultValue=False
)
)
Expand Down Expand Up @@ -271,7 +272,8 @@ def displayName(self):
return self.tr('Download and import BGT layers')

def group(self):
return self.tr(self.groupId())
# return self.tr(self.groupId())
pass

def groupId(self):
# return 'BGT Loader'
Expand Down
Empty file removed collections.json
Empty file.
Empty file removed parse_id.ipynb
Empty file.

0 comments on commit 179652c

Please sign in to comment.