diff --git a/python/plugins/processing/algs/saga/description/CrossProfiles.txt b/python/plugins/processing/algs/saga/description/CrossProfiles.txt index 441bf4e2b82..d3cf3c45031 100644 --- a/python/plugins/processing/algs/saga/description/CrossProfiles.txt +++ b/python/plugins/processing/algs/saga/description/CrossProfiles.txt @@ -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 diff --git a/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.dbf b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.dbf new file mode 100644 index 00000000000..53bb0175dfb Binary files /dev/null and b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.dbf differ diff --git a/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.mshp b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.mshp new file mode 100644 index 00000000000..f4c58cd87f9 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.mshp @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + dem + + + + /home/nyall/dev/QGIS/python/plugins/processing/tests/testdata/custom/lines_over.shp + + Profiles + + + + + + + ID + LINE + PART + X000 + X001 + X002 + X003 + X004 + X005 + X006 + X007 + X008 + X009 + + + + + + diff --git a/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.prj b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.prj new file mode 100644 index 00000000000..6477a3f138a --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.prj @@ -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"]] \ No newline at end of file diff --git a/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shp b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shp new file mode 100644 index 00000000000..e08a4a101d4 Binary files /dev/null and b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shp differ diff --git a/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shx b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shx new file mode 100644 index 00000000000..c68ae93ffbe Binary files /dev/null and b/python/plugins/processing/tests/testdata/expected/saga/cross_profiles.shx differ diff --git a/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml index 093d79cbd30..8d336142ae8 100644 --- a/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml +++ b/python/plugins/processing/tests/testdata/saga_algorithm_tests.yaml @@ -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 +