[processing] Add r.geomorphon grass command and module in grass core plugin (#9625)

* Create r.geomorphon.qgm

* Add files via upload

* Update default.qgc

* Create r.geomorphon.txt

Adding the description file to add the `r.geomorphon` command into `QGIS.Processing.GRASS`

* Update grass7_algorithms_raster_tests.yaml

Adding test for `r.geomorphon`

* fixing wrong spelling

thanks trevis

* Update grass7_algorithms_raster_tests.yaml

adding corrected unit test

* Create r.geomorphon.qgm

* Add files via upload

* Update default.qgc

* Create r.geomorphon.txt

Adding the description file to add the `r.geomorphon` command into `QGIS.Processing.GRASS`

* Update grass7_algorithms_raster_tests.yaml

Adding test for `r.geomorphon`

* fixing wrong spelling

thanks trevis

* Delete CTestCostData.txt

* Delete CTestCostData.txt

* Delete CTestCostData.txt

* Delete CTestCostData.txt
This commit is contained in:
epifanio 2019-04-27 10:37:43 +02:00 committed by Matthias Kuhn
parent f26ca3649f
commit 841b191ea8
6 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,11 @@
r.geomorphon
Calculates geomorphons (terrain forms) and associated geometry using machine vision approach.
Raster (r.*)
QgsProcessingParameterRasterLayer|elevation|Name of input elevation raster map|None|False
QgsProcessingParameterNumber|search|Outer search radius|QgsProcessingParameterNumber.Integer|3|True|3|499
QgsProcessingParameterNumber|skip|Inner search radius|QgsProcessingParameterNumber.Integer|0|True|0|499
QgsProcessingParameterNumber|flat|Flatenss threshold (degrees)|QgsProcessingParameterNumber.Double|1.0|True|None|None
QgsProcessingParameterNumber|dist|Flatenss distance, zero for none|QgsProcessingParameterNumber.Double|0.0|True|None|None
QgsProcessingParameterRasterDestination|forms|Most common geomorphic forms
*QgsProcessingParameterBoolean|-m|Use meters to define search units (default is cells)|False
*QgsProcessingParameterBoolean|-e|Use extended form correction|False

View File

@ -1772,3 +1772,24 @@ tests:
stream_raster:
hash: 916672ce0c35295100bcdc56bc60e26841b9cbb384924ae4f54648a8
type: rasterhash
- algorithm: grass7:r.geomorphon
name: Test (grass7:r.geomorphon)
params:
-e: false
-m: false
GRASS_RASTER_FORMAT_META: ''
GRASS_RASTER_FORMAT_OPT: ''
GRASS_REGION_CELLSIZE_PARAMETER: 0.0
dist: 0.0
elevation:
name: custom/grass7/float_raster.tif
type: raster
flat: 1.0
search: 3
skip: 0
results:
forms:
hash: e1a1fc36d53e2ac801632f9e2271922d2b1340869f2db82d5edaeb0e
type: rasterhash

View File

@ -230,6 +230,7 @@
<grass name="r.grow.distance" version_min="6.4"/>
<grass name="r.walk.coord"/>
<grass name="r.walk.vect"/>
<grass name="r.geomorphon"/>
</section>
<section label="Transform features">
<grass name="r.clump"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd">
<qgisgrassmodule label="Calculates geomorphons (terrain forms) and associated geometry using machine vision approach" module="r.geomorphon">
<option key="elevation" answer="" hidden="no"/>
<option key="forms" answer="" hidden="no"/>
<option key="search" answer="" hidden="no"/>
<option key="skip" answer="" hidden="no"/>
<option key="flat" answer="" hidden="no"/>
<option key="dist" answer="" hidden="no"/>
</qgisgrassmodule>