Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing][saga] Fix definition of cross profiles alg, add test
- Loading branch information
Showing
with
72 additions
and 1 deletion.
- +1 −1 python/plugins/processing/algs/saga/description/CrossProfiles.txt
- BIN python/plugins/processing/tests/testdata/expected/saga/cross_profiles.dbf
- +53 −0 python/plugins/processing/tests/testdata/expected/saga/cross_profiles.mshp
- +1 −0 python/plugins/processing/tests/testdata/expected/saga/cross_profiles.prj
- BIN python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shp
- BIN python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shx
- +17 −0 python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml
Binary file not shown.
@@ -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> |
@@ -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"]] |
Binary file not shown.
Binary file not shown.