-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing] split v.surf.rst algorithm into two (fix #19472)
This algorithm cannot output cross-validation results and topographic parameters simultaneously, hence two tools needed. Thanks to Pedro Venâncio for finding this and proposing a fix. (cherry picked from commit 34ec183)
- Loading branch information
1 parent
8ce8ee0
commit c2465fc
Showing
19 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
python/plugins/processing/algs/grass7/description/v.surf.rst.cvdev.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
v.surf.rst | ||
v.surf.rst.cvdev - Performs surface interpolation from vector points map by splines. | ||
Vector (v.*) | ||
QgsProcessingParameterFeatureSource|input|Input points layer|0|None|False | ||
QgsProcessingParameterField|zcolumn|Name of the attribute column with values to be used for approximation|None|input|-1|False|True | ||
QgsProcessingParameterString|where|WHERE conditions of SQL statement without 'where' keyword|None|True|True | ||
QgsProcessingParameterRasterLayer|mask|Name of the raster map used as mask|None|True | ||
QgsProcessingParameterNumber|tension|Tension parameter|QgsProcessingParameterNumber.Double|40.0|True|None|None | ||
QgsProcessingParameterNumber|smooth|Smoothing parameter|QgsProcessingParameterNumber.Double|None|True|None|None | ||
QgsProcessingParameterField|smooth_column|Name of the attribute column with smoothing parameters|None|input|-1|False|True | ||
QgsProcessingParameterNumber|segmax|Maximum number of points in a segment|QgsProcessingParameterNumber.Integer|40|True|0|None | ||
QgsProcessingParameterNumber|npmin|Minimum number of points for approximation in a segment (>segmax)|QgsProcessingParameterNumber.Integer|300|True|0|None | ||
QgsProcessingParameterNumber|dmin|Minimum distance between points (to remove almost identical points)|QgsProcessingParameterNumber.Double|None|True|0.0|None | ||
QgsProcessingParameterNumber|dmax|Maximum distance between points on isoline (to insert additional points)|QgsProcessingParameterNumber.Double|None|True|None|None | ||
QgsProcessingParameterNumber|zscale|Conversion factor for values used for approximation|QgsProcessingParameterNumber.Double|1.0|True|None|None | ||
QgsProcessingParameterNumber|theta|Anisotropy angle (in degrees counterclockwise from East)|QgsProcessingParameterNumber.Double|None|True|0.0|360.0 | ||
QgsProcessingParameterNumber|scalex|Anisotropy scaling factor|QgsProcessingParameterNumber.Double|None|True|None|None | ||
QgsProcessingParameterBoolean|-t|Use scale dependent tension|False | ||
QgsProcessingParameterBoolean|-c|Perform cross-validation procedure without raster approximation [leave this option as True]|True | ||
QgsProcessingParameterVectorDestination|cvdev|Cross Validation Errors|QgsProcessing.TypeVectorAnyGeometry|None|True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+338 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_cvdev.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/grass7/v_surf_cvdev.prj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] |
Binary file added
BIN
+276 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_cvdev.shp
Binary file not shown.
Binary file added
BIN
+132 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_cvdev.shx
Binary file not shown.
Binary file added
BIN
+338 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_deviations.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_deviations.prj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] |
Binary file added
BIN
+276 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_deviations.shp
Binary file not shown.
Binary file added
BIN
+132 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_deviations.shx
Binary file not shown.
Binary file added
BIN
+129 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_overlap.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_overlap.prj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] |
Binary file added
BIN
+236 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_overlap.shp
Binary file not shown.
Binary file added
BIN
+108 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_overlap.shx
Binary file not shown.
Binary file added
BIN
+129 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_quadtree.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions
1
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_quadtree.prj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] |
Binary file added
BIN
+236 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_quadtree.shp
Binary file not shown.
Binary file added
BIN
+108 Bytes
python/plugins/processing/tests/testdata/expected/grass7/v_surf_rst_quadtree.shx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters