Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
added SAGA watershed segmentation execution test
- Loading branch information
1 parent
ad96be9
commit 819a82ad54902f0542a2557f5ec63aa5c0286446
Showing
16 changed files
with
626 additions
and
0 deletions.
There are no files selected for viewing
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,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SAGA_METADATA> | ||
<HISTORY saga-version="2.3.1"> | ||
<MODULE library="imagery_segmentation" id="0" name="Watershed Segmentation"> | ||
<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="choice" id="OUTPUT" name="Output" index="0">Seed Value</OPTION> | ||
<OPTION type="choice" id="DOWN" name="Method" index="0">Minima</OPTION> | ||
<OPTION type="choice" id="JOIN" name="Join Segments based on Threshold Value" index="0">do not join</OPTION> | ||
<OPTION type="double" id="THRESHOLD" name="Threshold">0.500000</OPTION> | ||
<OPTION type="boolean" id="EDGE" name="Allow Edge Pixels to be Seeds">TRUE</OPTION> | ||
<OPTION type="boolean" id="BBORDERS" name="Borders">TRUE</OPTION> | ||
<INPUT type="grid" id="GRID" name="Grid" system="PARAMETERS_GRID_SYSTEM"> | ||
<MODULE library="io_gdal" id="0" name="Import Raster"> | ||
<OPTION type="file" id="FILES" name="Files">"/home/ginetto/PROGRAMMING/QGIS/QGIS-master/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> | ||
<OUTPUT type="data_object" id="BORDERS" name="Borders"/> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE>/home/ginetto/PROGRAMMING/QGIS/QGIS-master/python/plugins/processing/tests/testdata/expected/saga/watershed_segmentation_borders.sgrd</FILE> | ||
<DATABASE></DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]</OGC_WKT> | ||
<PROJ4>+init=epsg:4326 +proj=longlat +a=6378137.000000 +b=6356752.314245 +no_defs</PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
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["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<PAMDataset> | ||
<SRS>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]</SRS> | ||
</PAMDataset> |
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,15 @@ | ||
NAME = | ||
DESCRIPTION = | ||
UNIT = | ||
DATAFORMAT = BYTE_UNSIGNED | ||
DATAFILE_OFFSET = 0 | ||
BYTEORDER_BIG = FALSE | ||
TOPTOBOTTOM = FALSE | ||
POSITION_XMIN = 18.6662979442 | ||
POSITION_YMIN = 45.7767014376 | ||
CELLCOUNT_X = 375 | ||
CELLCOUNT_Y = 352 | ||
CELLSIZE = 0.0001000000 | ||
Z_FACTOR = 1.000000 | ||
Z_OFFSET = 0.000000 | ||
NODATA_VALUE = 0.000000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SAGA_METADATA> | ||
<HISTORY saga-version="2.3.1"> | ||
<MODULE library="imagery_segmentation" id="0" name="Watershed Segmentation"> | ||
<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="choice" id="OUTPUT" name="Output" index="0">Seed Value</OPTION> | ||
<OPTION type="choice" id="DOWN" name="Method" index="0">Minima</OPTION> | ||
<OPTION type="choice" id="JOIN" name="Join Segments based on Threshold Value" index="0">do not join</OPTION> | ||
<OPTION type="double" id="THRESHOLD" name="Threshold">0.500000</OPTION> | ||
<OPTION type="boolean" id="EDGE" name="Allow Edge Pixels to be Seeds">TRUE</OPTION> | ||
<OPTION type="boolean" id="BBORDERS" name="Borders">TRUE</OPTION> | ||
<INPUT type="grid" id="GRID" name="Grid" system="PARAMETERS_GRID_SYSTEM"> | ||
<MODULE library="io_gdal" id="0" name="Import Raster"> | ||
<OPTION type="file" id="FILES" name="Files">"/home/ginetto/PROGRAMMING/QGIS/QGIS-master/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> | ||
<OUTPUT type="shapes" id="SEEDS" name="Seed Points">dem [Seeds]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE></FILE> | ||
<DATABASE> | ||
<FIELDS> | ||
<FIELD TYPE="INTEGER">XCELL</FIELD> | ||
<FIELD TYPE="INTEGER">YCELL</FIELD> | ||
<FIELD TYPE="DOUBLE">VALUE</FIELD> | ||
<FIELD TYPE="INTEGER">ID</FIELD> | ||
<FIELD TYPE="INTEGER">ID_JOIN</FIELD> | ||
</FIELDS> | ||
</DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]</OGC_WKT> | ||
<PROJ4>+init=epsg:4326 +proj=longlat +a=6378137.000000 +b=6356752.314245 +no_defs</PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
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["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]] |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SAGA_METADATA> | ||
<HISTORY saga-version="2.3.1"> | ||
<MODULE library="imagery_segmentation" id="0" name="Watershed Segmentation"> | ||
<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="choice" id="OUTPUT" name="Output" index="0">Seed Value</OPTION> | ||
<OPTION type="choice" id="DOWN" name="Method" index="0">Minima</OPTION> | ||
<OPTION type="choice" id="JOIN" name="Join Segments based on Threshold Value" index="0">do not join</OPTION> | ||
<OPTION type="double" id="THRESHOLD" name="Threshold">0.500000</OPTION> | ||
<OPTION type="boolean" id="EDGE" name="Allow Edge Pixels to be Seeds">TRUE</OPTION> | ||
<OPTION type="boolean" id="BBORDERS" name="Borders">TRUE</OPTION> | ||
<INPUT type="grid" id="GRID" name="Grid" system="PARAMETERS_GRID_SYSTEM"> | ||
<MODULE library="io_gdal" id="0" name="Import Raster"> | ||
<OPTION type="file" id="FILES" name="Files">"/home/ginetto/PROGRAMMING/QGIS/QGIS-master/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> | ||
<OUTPUT type="grid" id="SEGMENTS" name="Segments">dem [Segments]</OUTPUT> | ||
</MODULE> | ||
</HISTORY> | ||
<SOURCE> | ||
<FILE>/home/ginetto/PROGRAMMING/QGIS/QGIS-master/python/plugins/processing/tests/testdata/expected/saga/watershed_segmentation_segments.sgrd</FILE> | ||
<DATABASE></DATABASE> | ||
<PROJECTION> | ||
<OGC_WKT>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]</OGC_WKT> | ||
<PROJ4>+init=epsg:4326 +proj=longlat +a=6378137.000000 +b=6356752.314245 +no_defs</PROJ4> | ||
<EPSG>-1</EPSG> | ||
</PROJECTION> | ||
</SOURCE> | ||
<DESCRIPTION></DESCRIPTION> | ||
</SAGA_METADATA> |
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["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]] |
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
<PAMDataset> | ||
<SRS>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]</SRS> | ||
</PAMDataset> |
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,15 @@ | ||
NAME = dem [Segments] | ||
DESCRIPTION = | ||
UNIT = | ||
DATAFORMAT = FLOAT | ||
DATAFILE_OFFSET = 0 | ||
BYTEORDER_BIG = FALSE | ||
TOPTOBOTTOM = FALSE | ||
POSITION_XMIN = 18.6663479442 | ||
POSITION_YMIN = 45.7767514376 | ||
CELLCOUNT_X = 373 | ||
CELLCOUNT_Y = 350 | ||
CELLSIZE = 0.0001000000 | ||
Z_FACTOR = 1.000000 | ||
Z_OFFSET = 0.000000 | ||
NODATA_VALUE = -999999.000000 |
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