Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[processing] add two Extract values models (for CSV and shape)
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
python/plugins/processing/modeler/models/Extract_raster_to_CSV.model
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,21 @@ | ||
NAME:Extract raster values (CSV) | ||
GROUP:[Example models] | ||
PARAMETER:ParameterVector|VECTORLAYER_INPUTVECTOR|Input vector|-1|False | ||
114.0,29.0 | ||
PARAMETER:ParameterRaster|RASTERLAYER_INPUTRASTER|Input raster|False | ||
333.0,30.0 | ||
PARAMETER:ParameterBoolean|BOOLEAN_REPROJECTVECTORTORASTERCRS|Reproject vector to raster CRS|False | ||
552.0,31.0 | ||
ALGORITHM:script:pointsfromvector | ||
123.0,146.0 | ||
None | ||
-1|RASTERLAYER_INPUTRASTER | ||
-1|VECTORLAYER_INPUTVECTOR | ||
None | ||
ALGORITHM:script:extractrastervaluestocsv | ||
398.0,201.0 | ||
None | ||
-1|RASTERLAYER_INPUTRASTER | ||
0|Output_layer | ||
-1|BOOLEAN_REPROJECTVECTORTORASTERCRS | ||
Output CSV file|555.0,284.0 |
21 changes: 21 additions & 0 deletions
21
python/plugins/processing/modeler/models/Extract_raster_to_shape.model
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,21 @@ | ||
NAME:Extract raster values (shapefile) | ||
GROUP:[Example models] | ||
PARAMETER:ParameterVector|VECTORLAYER_INPUTVECTOR|Input vector|-1|False | ||
114.0,29.0 | ||
PARAMETER:ParameterRaster|RASTERLAYER_INPUTRASTER|Input raster|False | ||
333.0,30.0 | ||
PARAMETER:ParameterBoolean|BOOLEAN_REPROJECTVECTORTORASTERCRS|Reproject vector to raster CRS|False | ||
552.0,31.0 | ||
ALGORITHM:script:pointsfromvector | ||
123.0,146.0 | ||
None | ||
-1|RASTERLAYER_INPUTRASTER | ||
-1|VECTORLAYER_INPUTVECTOR | ||
None | ||
ALGORITHM:script:extractrastervaluestoshapefile | ||
343.0,246.0 | ||
None | ||
-1|RASTERLAYER_INPUTRASTER | ||
0|Output_layer | ||
-1|BOOLEAN_REPROJECTVECTORTORASTERCRS | ||
Output layer|533.0,321.0 |