mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing][saga] Fix definition of cross profiles alg, add test
This commit is contained in:
parent
312c901ea0
commit
8323462f3b
@ -4,5 +4,5 @@ QgsProcessingParameterRasterLayer|DEM|DEM|None|False
|
||||
QgsProcessingParameterFeatureSource|LINES|Lines|1|None|False
|
||||
QgsProcessingParameterNumber|DIST_LINE|Profile Distance|QgsProcessingParameterNumber.Double|10.0|False|0.0|None
|
||||
QgsProcessingParameterNumber|DIST_PROFILE|Profile Length|QgsProcessingParameterNumber.Double|10.0|False|0.0|None
|
||||
QgsProcessingParameterNumber|NUM_PROFILE|Profile Samples|QgsProcessingParameterNumber.Double|10.0|False|1.0|None
|
||||
QgsProcessingParameterNumber|NUM_PROFILE|Profile Samples|QgsProcessingParameterNumber.Integer|10|False|3|None
|
||||
QgsProcessingParameterVectorDestination|PROFILES|Cross Profiles
|
||||
|
BIN
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.dbf
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.dbf
vendored
Normal file
Binary file not shown.
53
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.mshp
vendored
Normal file
53
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.mshp
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<SAGA_METADATA>
|
||||
<HISTORY saga-version="2.3.1">
|
||||
<MODULE library="ta_profiles" id="3" name="Cross Profiles">
|
||||
<OPTION type="grid_system" id="PARAMETERS_GRID_SYSTEM" name="Grid system">
|
||||
<CELLSIZE>0.0001</CELLSIZE>
|
||||
<XMIN>18.666347944200002</XMIN>
|
||||
<XMAX>18.7035479442</XMAX>
|
||||
<YMIN>45.7767514376</YMIN>
|
||||
<YMAX>45.8116514376</YMAX>
|
||||
</OPTION>
|
||||
<OPTION type="double" id="DIST_LINE" name="Profile Distance">0.001000</OPTION>
|
||||
<OPTION type="double" id="DIST_PROFILE" name="Profile Length">0.002000</OPTION>
|
||||
<OPTION type="integer" id="NUM_PROFILE" name="Profile Samples">10</OPTION>
|
||||
<INPUT type="grid" id="DEM" name="DEM" system="PARAMETERS_GRID_SYSTEM">
|
||||
<MODULE library="io_gdal" id="0" name="Import Raster">
|
||||
<OPTION type="file" id="FILES" name="Files">"/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/dem.tif"</OPTION>
|
||||
<OPTION type="text" id="SELECTION" name="Select from Multiple Bands"/>
|
||||
<OPTION type="boolean" id="SELECT_SORT" name="Alphanumeric Sorting">TRUE</OPTION>
|
||||
<OPTION type="boolean" id="TRANSFORM" name="Transformation">TRUE</OPTION>
|
||||
<OPTION type="choice" id="RESAMPLING" name="Resampling" index="3">B-Spline Interpolation</OPTION>
|
||||
<OUTPUT type="grid_list" id="GRIDS" name="Grids">dem</OUTPUT>
|
||||
</MODULE>
|
||||
</INPUT>
|
||||
<INPUT type="shapes" id="LINES" name="Lines">
|
||||
<FILE>/home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/lines_over.shp</FILE>
|
||||
</INPUT>
|
||||
<OUTPUT type="shapes" id="PROFILES" name="Cross Profiles">Profiles</OUTPUT>
|
||||
</MODULE>
|
||||
</HISTORY>
|
||||
<SOURCE>
|
||||
<FILE></FILE>
|
||||
<DATABASE>
|
||||
<FIELDS>
|
||||
<FIELD TYPE="INTEGER">ID</FIELD>
|
||||
<FIELD TYPE="INTEGER">LINE</FIELD>
|
||||
<FIELD TYPE="INTEGER">PART</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X000</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X001</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X002</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X003</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X004</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X005</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X006</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X007</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X008</FIELD>
|
||||
<FIELD TYPE="DOUBLE">X009</FIELD>
|
||||
</FIELDS>
|
||||
</DATABASE>
|
||||
<PROJECTION></PROJECTION>
|
||||
</SOURCE>
|
||||
<DESCRIPTION></DESCRIPTION>
|
||||
</SAGA_METADATA>
|
1
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.prj
vendored
Normal file
1
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.prj
vendored
Normal file
@ -0,0 +1 @@
|
||||
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
|
BIN
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shp
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shp
vendored
Normal file
Binary file not shown.
BIN
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shx
vendored
Normal file
BIN
python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shx
vendored
Normal file
Binary file not shown.
@ -358,3 +358,20 @@ tests:
|
||||
name: expected/saga/polygon_self_intersection.shp
|
||||
type: vector
|
||||
|
||||
- algorithm: saga:crossprofiles
|
||||
name: Cross profiles
|
||||
params:
|
||||
DEM:
|
||||
name: dem.tif
|
||||
type: raster
|
||||
DIST_LINE: 0.001
|
||||
DIST_PROFILE: 0.002
|
||||
LINES:
|
||||
name: custom/lines_over.shp
|
||||
type: vector
|
||||
NUM_PROFILE: 10
|
||||
results:
|
||||
PROFILES:
|
||||
name: expected/saga/cross_profiles.shp
|
||||
type: vector
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user