Skip to content

Commit

Permalink
Merge pull request #9 from m-kuhn/qgis_process
Browse files Browse the repository at this point in the history
Add compatibility with qgis_process
  • Loading branch information
Gooong authored Nov 26, 2020
2 parents b97dcf7 + 4196dfd commit c549946
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions least_cost_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@ def __init__(self):
def initGui(self):
QgsApplication.processingRegistry().addProvider(self.provider)

def initProcessing(self):
QgsApplication.processingRegistry().addProvider(self.provider)

def unload(self):
QgsApplication.processingRegistry().removeProvider(self.provider)
3 changes: 3 additions & 0 deletions metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ repository=https://github.com/Gooong/LeastCostPath
# Tags are comma separated with spaces allowed
tags=least cost path distance raster analysis road

# The plugin is compatible with qgis_process
hasProcessingProvider=yes

homepage=https://github.com/Gooong/LeastCostPath
category=Analysis
icon=icon.png
Expand Down

0 comments on commit c549946

Please sign in to comment.