mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
fix typos and add tests for gdal algorithms
This commit is contained in:
parent
9b74d9f2df
commit
fde5c89d97
@ -133,7 +133,7 @@ class ClipRasterByMask(GdalAlgorithm):
|
|||||||
arguments.append('-of')
|
arguments.append('-of')
|
||||||
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
||||||
|
|
||||||
if self.parameterAsBool(self.KEEP_RESOLUTION):
|
if self.parameterAsBool(parameters, self.KEEP_RESOLUTION, context):
|
||||||
arguments.append('-tr')
|
arguments.append('-tr')
|
||||||
arguments.append(str(inLayer.rasterUnitsPerPixelX()))
|
arguments.append(str(inLayer.rasterUnitsPerPixelX()))
|
||||||
arguments.append(str(-inLayer.rasterUnitsPerPixelY()))
|
arguments.append(str(-inLayer.rasterUnitsPerPixelY()))
|
||||||
@ -145,10 +145,10 @@ class ClipRasterByMask(GdalAlgorithm):
|
|||||||
arguments.append('-cwhere')
|
arguments.append('-cwhere')
|
||||||
arguments.append(maskLayer.subsetString())
|
arguments.append(maskLayer.subsetString())
|
||||||
|
|
||||||
if self.parameterAsBool(self.CROP_TO_CUTLINE):
|
if self.parameterAsBool(parameters, self.CROP_TO_CUTLINE, context):
|
||||||
arguments.append('-crop_to_cutline')
|
arguments.append('-crop_to_cutline')
|
||||||
|
|
||||||
if self.parameterAsBool(self.ALPHA_BAND):
|
if self.parameterAsBool(parameters, self.ALPHA_BAND, context):
|
||||||
arguments.append('-dstalpha')
|
arguments.append('-dstalpha')
|
||||||
|
|
||||||
if nodata:
|
if nodata:
|
||||||
|
@ -25,6 +25,7 @@ __copyright__ = '(C) 2013, Alexander Bruy'
|
|||||||
|
|
||||||
__revision__ = '$Format:%H$'
|
__revision__ = '$Format:%H$'
|
||||||
|
|
||||||
|
import os
|
||||||
from qgis.core import (QgsRasterFileWriter,
|
from qgis.core import (QgsRasterFileWriter,
|
||||||
QgsProcessingParameterDefinition,
|
QgsProcessingParameterDefinition,
|
||||||
QgsProcessingParameterRasterLayer,
|
QgsProcessingParameterRasterLayer,
|
||||||
|
@ -186,6 +186,7 @@ class GridInverseDistance(GdalAlgorithm):
|
|||||||
arguments.append('-of')
|
arguments.append('-of')
|
||||||
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
||||||
|
|
||||||
|
options = self.parameterAsString(parameters, self.OPTIONS, context)
|
||||||
if options:
|
if options:
|
||||||
arguments.append('-co')
|
arguments.append('-co')
|
||||||
arguments.append(options)
|
arguments.append(options)
|
||||||
|
@ -128,7 +128,7 @@ class GridInverseDistanceNearestNeighbor(GdalAlgorithm):
|
|||||||
self.addParameter(dataType_param)
|
self.addParameter(dataType_param)
|
||||||
|
|
||||||
self.addParameter(QgsProcessingParameterRasterDestination(self.OUTPUT,
|
self.addParameter(QgsProcessingParameterRasterDestination(self.OUTPUT,
|
||||||
self.tr('Interpolated (IDW)')))
|
self.tr('Interpolated (IDW with NN search)')))
|
||||||
|
|
||||||
def name(self):
|
def name(self):
|
||||||
return 'gridinversedistancenearestneighbor'
|
return 'gridinversedistancenearestneighbor'
|
||||||
@ -171,6 +171,7 @@ class GridInverseDistanceNearestNeighbor(GdalAlgorithm):
|
|||||||
arguments.append('-of')
|
arguments.append('-of')
|
||||||
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
||||||
|
|
||||||
|
options = self.parameterAsString(parameters, self.OPTIONS, context)
|
||||||
if options:
|
if options:
|
||||||
arguments.append('-co')
|
arguments.append('-co')
|
||||||
arguments.append(options)
|
arguments.append(options)
|
||||||
|
@ -103,7 +103,7 @@ class GridLinear(GdalAlgorithm):
|
|||||||
self.addParameter(dataType_param)
|
self.addParameter(dataType_param)
|
||||||
|
|
||||||
self.addParameter(QgsProcessingParameterRasterDestination(self.OUTPUT,
|
self.addParameter(QgsProcessingParameterRasterDestination(self.OUTPUT,
|
||||||
self.tr('Interpolated (IDW)')))
|
self.tr('Interpolated (Linear)')))
|
||||||
|
|
||||||
def name(self):
|
def name(self):
|
||||||
return 'gridlinear'
|
return 'gridlinear'
|
||||||
@ -142,6 +142,7 @@ class GridLinear(GdalAlgorithm):
|
|||||||
arguments.append('-of')
|
arguments.append('-of')
|
||||||
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
||||||
|
|
||||||
|
options = self.parameterAsString(parameters, self.OPTIONS, context)
|
||||||
if options:
|
if options:
|
||||||
arguments.append('-co')
|
arguments.append('-co')
|
||||||
arguments.append(options)
|
arguments.append(options)
|
||||||
|
@ -157,6 +157,7 @@ class GridNearestNeighbor(GdalAlgorithm):
|
|||||||
arguments.append('-of')
|
arguments.append('-of')
|
||||||
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
arguments.append(QgsRasterFileWriter.driverForExtension(os.path.splitext(out)[1]))
|
||||||
|
|
||||||
|
options = self.parameterAsString(parameters, self.OPTIONS, context)
|
||||||
if options:
|
if options:
|
||||||
arguments.append('-co')
|
arguments.append('-co')
|
||||||
arguments.append(options)
|
arguments.append(options)
|
||||||
|
@ -89,15 +89,15 @@ class fillnodata(GdalAlgorithm):
|
|||||||
def getConsoleCommands(self, parameters, context, feedback):
|
def getConsoleCommands(self, parameters, context, feedback):
|
||||||
arguments = []
|
arguments = []
|
||||||
arguments.append('-md')
|
arguments.append('-md')
|
||||||
arguments.append(str(self.parameterAsInt(self.DISTANCE)))
|
arguments.append(str(self.parameterAsInt(parameters, self.DISTANCE, context)))
|
||||||
|
|
||||||
nIterations = self.parameterAsInt(self.ITERATIONS)
|
nIterations = self.parameterAsInt(parameters, self.ITERATIONS, context)
|
||||||
if nIterations:
|
if nIterations:
|
||||||
arguments.append('-si')
|
arguments.append('-si')
|
||||||
arguments.append(str(nIterations))
|
arguments.append(str(nIterations))
|
||||||
|
|
||||||
arguments.append('-b')
|
arguments.append('-b')
|
||||||
arguments.append(str(self.parameterAsInt(self.BAND)))
|
arguments.append(str(self.parameterAsInt(parameters, self.BAND, context)))
|
||||||
|
|
||||||
if self.parameterAsBool(parameters, self.NO_MASK, context):
|
if self.parameterAsBool(parameters, self.NO_MASK, context):
|
||||||
arguments.append('-nomask')
|
arguments.append('-nomask')
|
||||||
|
@ -153,6 +153,6 @@ class gdaltindex(GdalAlgorithm):
|
|||||||
arguments.append('-f {}'.format(outFormat))
|
arguments.append('-f {}'.format(outFormat))
|
||||||
|
|
||||||
arguments.append(output)
|
arguments.append(output)
|
||||||
arguments.extend(' '.join(layers))
|
arguments.append(' '.join(layers))
|
||||||
|
|
||||||
return ['gdaltindex', GdalUtils.escapeAndJoin(arguments)]
|
return ['gdaltindex', GdalUtils.escapeAndJoin(arguments)]
|
||||||
|
@ -92,6 +92,8 @@ class nearblack(GdalAlgorithm):
|
|||||||
|
|
||||||
def getConsoleCommands(self, parameters, context, feedback):
|
def getConsoleCommands(self, parameters, context, feedback):
|
||||||
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
|
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
|
||||||
|
|
||||||
|
arguments = []
|
||||||
arguments.append(inLayer.source())
|
arguments.append(inLayer.source())
|
||||||
|
|
||||||
out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)
|
out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)
|
||||||
|
@ -87,7 +87,7 @@ class sieve(GdalAlgorithm):
|
|||||||
def getConsoleCommands(self, parameters, context, feedback):
|
def getConsoleCommands(self, parameters, context, feedback):
|
||||||
arguments = []
|
arguments = []
|
||||||
arguments.append('-st')
|
arguments.append('-st')
|
||||||
arguments.append(str(self.parameterAsInt(self.THRESHOLD)))
|
arguments.append(str(self.parameterAsInt(parameters, self.THRESHOLD, context)))
|
||||||
|
|
||||||
if self.parameterAsBool(parameters, self.EIGHT_CONNECTEDNESS, context):
|
if self.parameterAsBool(parameters, self.EIGHT_CONNECTEDNESS, context):
|
||||||
arguments.append('-8')
|
arguments.append('-8')
|
||||||
|
3388
python/plugins/processing/tests/testdata/expected/gdal/contour.gml
vendored
Normal file
3388
python/plugins/processing/tests/testdata/expected/gdal/contour.gml
vendored
Normal file
File diff suppressed because one or more lines are too long
38
python/plugins/processing/tests/testdata/expected/gdal/contour.xsd
vendored
Normal file
38
python/plugins/processing/tests/testdata/expected/gdal/contour.xsd
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
|
||||||
|
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
|
||||||
|
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
|
||||||
|
<xs:complexType name="FeatureCollectionType">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="gml:AbstractFeatureCollectionType">
|
||||||
|
<xs:attribute name="lockId" type="xs:string" use="optional"/>
|
||||||
|
<xs:attribute name="scope" type="xs:string" use="optional"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:element name="contour" type="ogr:contour_Type" substitutionGroup="gml:_Feature"/>
|
||||||
|
<xs:complexType name="contour_Type">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="gml:AbstractFeatureType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="geometryProperty" type="gml:MultiLineStringPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="ID" nillable="true" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:integer">
|
||||||
|
<xs:totalDigits value="8"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="ELEV" nillable="true" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:decimal">
|
||||||
|
<xs:totalDigits value="12"/>
|
||||||
|
<xs:fractionDigits value="3"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:schema>
|
File diff suppressed because one or more lines are too long
30
python/plugins/processing/tests/testdata/expected/gdal/polygonize.xsd
vendored
Normal file
30
python/plugins/processing/tests/testdata/expected/gdal/polygonize.xsd
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
|
||||||
|
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
|
||||||
|
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
|
||||||
|
<xs:complexType name="FeatureCollectionType">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="gml:AbstractFeatureCollectionType">
|
||||||
|
<xs:attribute name="lockId" type="xs:string" use="optional"/>
|
||||||
|
<xs:attribute name="scope" type="xs:string" use="optional"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:element name="polygonize" type="ogr:polygonize_Type" substitutionGroup="gml:_Feature"/>
|
||||||
|
<xs:complexType name="polygonize_Type">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="gml:AbstractFeatureType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="geometryProperty" type="gml:PolygonPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="DN" nillable="true" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:integer">
|
||||||
|
<xs:totalDigits value="16"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:schema>
|
@ -1,37 +1,26 @@
|
|||||||
<pre>Driver: GTiff/GeoTIFF
|
<pre>Driver: GTiff/GeoTIFF
|
||||||
Files: /home/alex/devel/cpp/qgis/python/plugins/processing/tests/testdata/raster.tif
|
Files: /home/alex/devel/qgis/python/plugins/processing/tests/testdata/dem.tif
|
||||||
Size is 16, 14
|
/home/alex/devel/qgis/python/plugins/processing/tests/testdata/dem.tif.aux.xml
|
||||||
|
Size is 373, 350
|
||||||
Coordinate System is:
|
Coordinate System is:
|
||||||
PROJCS["ED50 / UTM zone 30N",
|
GEOGCS["WGS 84",
|
||||||
GEOGCS["ED50",
|
DATUM["WGS_1984",
|
||||||
DATUM["European_Datum_1950",
|
SPHEROID["WGS 84",6378137,298.257223563,
|
||||||
SPHEROID["International 1924",6378388,297.0000000000014,
|
AUTHORITY["EPSG","7030"]],
|
||||||
AUTHORITY["EPSG","7022"]],
|
AUTHORITY["EPSG","6326"]],
|
||||||
AUTHORITY["EPSG","6230"]],
|
|
||||||
PRIMEM["Greenwich",0],
|
PRIMEM["Greenwich",0],
|
||||||
UNIT["degree",0.0174532925199433],
|
UNIT["degree",0.0174532925199433],
|
||||||
AUTHORITY["EPSG","4230"]],
|
AUTHORITY["EPSG","4326"]]
|
||||||
PROJECTION["Transverse_Mercator"],
|
Origin = (18.666297944200000,45.811701437600000)
|
||||||
PARAMETER["latitude_of_origin",0],
|
Pixel Size = (0.000100000000000,-0.000100000000000)
|
||||||
PARAMETER["central_meridian",-3],
|
|
||||||
PARAMETER["scale_factor",0.9996],
|
|
||||||
PARAMETER["false_easting",500000],
|
|
||||||
PARAMETER["false_northing",0],
|
|
||||||
UNIT["metre",1,
|
|
||||||
AUTHORITY["EPSG","9001"]],
|
|
||||||
AUTHORITY["EPSG","23030"]]
|
|
||||||
Origin = (270736.067325068172067,4459029.574521748349071)
|
|
||||||
Pixel Size = (10.236696404106624,-10.044151671496886)
|
|
||||||
Metadata:
|
|
||||||
AREA_OR_POINT=Area
|
|
||||||
Image Structure Metadata:
|
|
||||||
INTERLEAVE=BAND
|
|
||||||
Corner Coordinates:
|
Corner Coordinates:
|
||||||
Upper Left ( 270736.067, 4459029.575) ( 5d41'43.48"W, 40d14'58.76"N)
|
Upper Left ( 18.6662979, 45.8117014) ( 18d39'58.67"E, 45d48'42.13"N)
|
||||||
Lower Left ( 270736.067, 4458888.956) ( 5d41'43.30"W, 40d14'54.20"N)
|
Lower Left ( 18.6662979, 45.7767014) ( 18d39'58.67"E, 45d46'36.13"N)
|
||||||
Upper Right ( 270899.854, 4459029.575) ( 5d41'36.56"W, 40d14'58.92"N)
|
Upper Right ( 18.7035979, 45.8117014) ( 18d42'12.95"E, 45d48'42.13"N)
|
||||||
Lower Right ( 270899.854, 4458888.956) ( 5d41'36.38"W, 40d14'54.37"N)
|
Lower Right ( 18.7035979, 45.7767014) ( 18d42'12.95"E, 45d46'36.13"N)
|
||||||
Center ( 270817.961, 4458959.265) ( 5d41'39.93"W, 40d14'56.56"N)
|
Center ( 18.6849479, 45.7942014) ( 18d41' 5.81"E, 45d47'39.13"N)
|
||||||
Band 1 Block=16x14 Type=Float32, ColorInterp=Gray
|
Band 1 Block=373x5 Type=Float32, ColorInterp=Gray
|
||||||
NoData Value=-32768
|
Min=85.000 Max=243.000
|
||||||
|
Minimum=85.000, Maximum=243.000, Mean=147.172, StdDev=43.962
|
||||||
|
NoData Value=-99999
|
||||||
</pre>
|
</pre>
|
20
python/plugins/processing/tests/testdata/expected/gdal/tile_index.gml
vendored
Normal file
20
python/plugins/processing/tests/testdata/expected/gdal/tile_index.gml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ogr:FeatureCollection
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://ogr.maptools.org/ tile_index.xsd"
|
||||||
|
xmlns:ogr="http://ogr.maptools.org/"
|
||||||
|
xmlns:gml="http://www.opengis.net/gml">
|
||||||
|
<gml:boundedBy>
|
||||||
|
<gml:Box>
|
||||||
|
<gml:coord><gml:X>18.6662979442</gml:X><gml:Y>45.7767014376</gml:Y></gml:coord>
|
||||||
|
<gml:coord><gml:X>18.7035979442</gml:X><gml:Y>45.8117014376</gml:Y></gml:coord>
|
||||||
|
</gml:Box>
|
||||||
|
</gml:boundedBy>
|
||||||
|
|
||||||
|
<gml:featureMember>
|
||||||
|
<ogr:tile_index fid="tile_index.0">
|
||||||
|
<ogr:geometryProperty><gml:Polygon srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>18.6662979442,45.8117014376 18.7035979442,45.8117014376 18.7035979442,45.7767014376 18.6662979442,45.7767014376 18.6662979442,45.8117014376</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
|
||||||
|
<ogr:location>/home/alex/devel/qgis/python/plugins/processing/tests/testdata/dem.tif</ogr:location>
|
||||||
|
</ogr:tile_index>
|
||||||
|
</gml:featureMember>
|
||||||
|
</ogr:FeatureCollection>
|
29
python/plugins/processing/tests/testdata/expected/gdal/tile_index.xsd
vendored
Normal file
29
python/plugins/processing/tests/testdata/expected/gdal/tile_index.xsd
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xs:schema targetNamespace="http://ogr.maptools.org/" xmlns:ogr="http://ogr.maptools.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="1.0">
|
||||||
|
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
|
||||||
|
<xs:element name="FeatureCollection" type="ogr:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection"/>
|
||||||
|
<xs:complexType name="FeatureCollectionType">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="gml:AbstractFeatureCollectionType">
|
||||||
|
<xs:attribute name="lockId" type="xs:string" use="optional"/>
|
||||||
|
<xs:attribute name="scope" type="xs:string" use="optional"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:element name="tile_index" type="ogr:tile_index_Type" substitutionGroup="gml:_Feature"/>
|
||||||
|
<xs:complexType name="tile_index_Type">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="gml:AbstractFeatureType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="geometryProperty" type="gml:PolygonPropertyType" nillable="true" minOccurs="0" maxOccurs="1"/>
|
||||||
|
<xs:element name="location" nillable="true" minOccurs="0" maxOccurs="1">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:schema>
|
130550
python/plugins/processing/tests/testdata/expected/gdal/xyz.csv
vendored
Normal file
130550
python/plugins/processing/tests/testdata/expected/gdal/xyz.csv
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,30 +1,14 @@
|
|||||||
tests:
|
tests:
|
||||||
|
|
||||||
- algorithm: gdal:gdalinfo
|
|
||||||
name: gdalinfo
|
|
||||||
params:
|
|
||||||
INPUT:
|
|
||||||
name: raster.tif
|
|
||||||
type: raster
|
|
||||||
NOGCP: false
|
|
||||||
NOMETADATA: false
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
name: expected/gdal/raster_info.html
|
|
||||||
type: regex
|
|
||||||
rules:
|
|
||||||
- 'Origin = \(270736.067325068172067,4459029.574521748349071\)'
|
|
||||||
- 'Band 1 Block=16x14 Type=Float32, ColorInterp=Gray'
|
|
||||||
- ' NoData Value=-32768'
|
|
||||||
|
|
||||||
- algorithm: gdal:aspect
|
- algorithm: gdal:aspect
|
||||||
name: Aspect
|
name: Aspect (gdaldem)
|
||||||
params:
|
params:
|
||||||
BAND: 1
|
BAND: 1
|
||||||
COMPUTE_EDGES: false
|
COMPUTE_EDGES: false
|
||||||
INPUT:
|
INPUT:
|
||||||
name: dem.tif
|
name: dem.tif
|
||||||
type: raster
|
type: raster
|
||||||
|
OPTIONS: ''
|
||||||
TRIG_ANGLE: false
|
TRIG_ANGLE: false
|
||||||
ZERO_FLAT: false
|
ZERO_FLAT: false
|
||||||
ZEVENBERGEN: false
|
ZEVENBERGEN: false
|
||||||
@ -33,16 +17,249 @@ tests:
|
|||||||
hash: 8436df662a44a00762aa29768e5d6ecfaf2d42e9a4da02d8afc6e3f6
|
hash: 8436df662a44a00762aa29768e5d6ecfaf2d42e9a4da02d8afc6e3f6
|
||||||
type: rasterhash
|
type: rasterhash
|
||||||
|
|
||||||
- algorithm: gdal:hillshade
|
- algorithm: gdal:cliprasterbyextent
|
||||||
name: Hillshade
|
name: Clip raster by extent (gdal_transform)
|
||||||
|
params:
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
PROJWIN: 18.673038221977773,18.699957975064194,45.782253906735804,45.80350236352593
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: f4dd2d3693afe0b95a6b6d0c98a57331b8f7c6a61a372f52da912c07
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:cliprasterbymasklayer
|
||||||
|
name: Clip raster by mask layer (gdalwarp)
|
||||||
|
params:
|
||||||
|
ALPHA_BAND: false
|
||||||
|
CROP_TO_CUTLINE: true
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
KEEP_RESOLUTION: false
|
||||||
|
MASK:
|
||||||
|
name: custom/polygon_mask.gml
|
||||||
|
type: vector
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 4f4720e4efe59a7f238f622659917bbeb5262369d15d5e2917dbcf8b
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:colorrelief
|
||||||
|
name: Color relief (gdaldem)
|
||||||
params:
|
params:
|
||||||
ALTITUDE: 45.0
|
|
||||||
AZIMUTH: 315.0
|
|
||||||
BAND: 1
|
BAND: 1
|
||||||
|
COLOR_TABLE:
|
||||||
|
name: custom/color_relief.txt
|
||||||
|
type: file
|
||||||
COMPUTE_EDGES: false
|
COMPUTE_EDGES: false
|
||||||
INPUT:
|
INPUT:
|
||||||
name: dem.tif
|
name: dem.tif
|
||||||
type: raster
|
type: raster
|
||||||
|
MATCH_MODE: 1
|
||||||
|
OPTIONS: ''
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 3d1b5ddaf0e9763164b7865e5e4ac2d55c4993aa52de2705f2ba4232
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:contour
|
||||||
|
name: Contour (gdal_contour)
|
||||||
|
params:
|
||||||
|
BAND: 1
|
||||||
|
CREATE_3D: false
|
||||||
|
FIELD_NAME: ELEV
|
||||||
|
IGNORE_NODATA: false
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
INTERVAL: 10.0
|
||||||
|
NODATA: 0.0
|
||||||
|
OFFSET: 0.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
name: expected/gdal/contour.gml
|
||||||
|
type: vector
|
||||||
|
|
||||||
|
- algorithm: gdal:gdalinfo
|
||||||
|
name: gdalinfo
|
||||||
|
params:
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
MIN_MAX: false
|
||||||
|
NOGCP: true
|
||||||
|
NO_METADATA: true
|
||||||
|
STATS: false
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
name: expected/gdal/raster_info.html
|
||||||
|
type: regex
|
||||||
|
rules:
|
||||||
|
- 'Origin = \(18.666297944200000,45.811701437600000\)'
|
||||||
|
- 'Band 1 Block=373x5 Type=Float32, ColorInterp=Gray'
|
||||||
|
- ' NoData Value=-99999'
|
||||||
|
|
||||||
|
- algorithm: gdal:gdal2xyz
|
||||||
|
name: gdal2xyz
|
||||||
|
params:
|
||||||
|
BAND: 1
|
||||||
|
CSV: false
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
name: expected/gdal/xyz.csv
|
||||||
|
type: file
|
||||||
|
|
||||||
|
- algorithm: gdal:tileindex
|
||||||
|
name: Tile index (gdaltindex)
|
||||||
|
params:
|
||||||
|
ABSOLUTE_PATH: true
|
||||||
|
CRS_FIELD_NAME: ''
|
||||||
|
CRS_FORMAT: 0
|
||||||
|
LAYERS:
|
||||||
|
params:
|
||||||
|
- name: dem.tif
|
||||||
|
type: raster
|
||||||
|
type: multi
|
||||||
|
PATH_FIELD_NAME: location
|
||||||
|
PROJ_DIFFERENCE: false
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
name: expected/gdal/tile_index.gml
|
||||||
|
type: vector
|
||||||
|
|
||||||
|
- algorithm: gdal:gridaverage
|
||||||
|
name: Moving average interpolation (gdal_grid)
|
||||||
|
params:
|
||||||
|
ANGLE: 0.0
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: pointsz.gml
|
||||||
|
type: vector
|
||||||
|
MIN_POINTS: 0
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
RADIUS_1: 5.0
|
||||||
|
RADIUS_2: 5.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 1c3adf57a7e319582736a1a222211e2360115fc930d6a12415dbdec3
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:griddatametrics
|
||||||
|
name: Data metrics interpolation (gdal_grid)
|
||||||
|
params:
|
||||||
|
ANGLE: 0.0
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: pointsz.gml
|
||||||
|
type: vector
|
||||||
|
METRIC: 2
|
||||||
|
MIN_POINTS: 0
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
RADIUS_1: 5.0
|
||||||
|
RADIUS_2: 5.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 11075786ce1a8f5875c203a881f39bb49e7d9f9adcb83c286c72b644
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:gridinversedistance
|
||||||
|
name: Inverse distance to a power interpolation (gdal_grid)
|
||||||
|
params:
|
||||||
|
ANGLE: 0.0
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: pointsz.gml
|
||||||
|
type: vector
|
||||||
|
MAX_POINTS: 0
|
||||||
|
MIN_POINTS: 0
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
POWER: 2.0
|
||||||
|
RADIUS_1: 0.0
|
||||||
|
RADIUS_2: 0.0
|
||||||
|
SMOOTHING: 0.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 26658f6dd6a1dd4b576b2e71d3b31f1679d7144b8e53fb58502eff64
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:gridinversedistancenearestneighbor
|
||||||
|
name: Inverse distance to a power with nearest neighbor searching (gdal_grid)
|
||||||
|
params:
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: pointsz.gml
|
||||||
|
type: vector
|
||||||
|
MAX_POINTS: 0
|
||||||
|
MIN_POINTS: 0
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
POWER: 2.0
|
||||||
|
RADIUS: 5.0
|
||||||
|
SMOOTHING: 0.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 34fb2b6dc92f5f4147bf136a46dd872f4f94d3bca259d10c8c388620
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:gridlinear
|
||||||
|
name: Linear interpolation (gdal_grid)
|
||||||
|
params:
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: pointsz.gml
|
||||||
|
type: vector
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
RADIUS: -1.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: aca7c839c679613f4910cbdea660359f1551c104c57fea9a61795668
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:gridnearestneighbor
|
||||||
|
name: Nearest neighbor interpolation (gdal_grid)
|
||||||
|
params:
|
||||||
|
ANGLE: 0.0
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: pointsz.gml
|
||||||
|
type: vector
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
RADIUS_1: 0.0
|
||||||
|
RADIUS_2: 0.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 354f728b1dd133ad3db28a51b956bf3108615d31363f3a55b2ce04b9
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:hillshade
|
||||||
|
name: Hillshade (gdaldem)
|
||||||
|
params:
|
||||||
|
ALTITUDE: 45.0
|
||||||
|
AZIMUTH: 315.0
|
||||||
|
BAND: 1
|
||||||
|
COMBINED: false
|
||||||
|
COMPUTE_EDGES: false
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
MULTIDIRECTIONAL: false
|
||||||
|
OPTIONS: ''
|
||||||
SCALE: 1.0
|
SCALE: 1.0
|
||||||
ZEVENBERGEN: false
|
ZEVENBERGEN: false
|
||||||
Z_FACTOR: 1.0
|
Z_FACTOR: 1.0
|
||||||
@ -51,61 +268,6 @@ tests:
|
|||||||
hash: e5cf91b875b918682e456463165eddc4af4ae8855b143068e198ce2a
|
hash: e5cf91b875b918682e456463165eddc4af4ae8855b143068e198ce2a
|
||||||
type: rasterhash
|
type: rasterhash
|
||||||
|
|
||||||
- algorithm: gdal:slope
|
|
||||||
name: Slope
|
|
||||||
params:
|
|
||||||
AS_PERCENT: false
|
|
||||||
BAND: 1
|
|
||||||
COMPUTE_EDGES: false
|
|
||||||
INPUT:
|
|
||||||
name: dem.tif
|
|
||||||
type: raster
|
|
||||||
SCALE: 1.0
|
|
||||||
ZEVENBERGEN: false
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: 319c470de3315f440371d5df8a6e478a8ecaf1cf904a013dbf1b3a6a
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:roughness
|
|
||||||
name: Roughness
|
|
||||||
params:
|
|
||||||
BAND: 1
|
|
||||||
COMPUTE_EDGES: false
|
|
||||||
INPUT:
|
|
||||||
name: dem.tif
|
|
||||||
type: raster
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: ee2b317e022da1001378fac60c9b613a74d3566b9870f9d121e6e322
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:triterrainruggednessindex
|
|
||||||
name: Terrain ruggedness index
|
|
||||||
params:
|
|
||||||
BAND: 1
|
|
||||||
COMPUTE_EDGES: false
|
|
||||||
INPUT:
|
|
||||||
name: dem.tif
|
|
||||||
type: raster
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: c888764a08fae72a129dfff4947149c3185532373d33d4537ecf409c
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:tpitopographicpositionindex
|
|
||||||
name: Topographic position index
|
|
||||||
params:
|
|
||||||
BAND: 1
|
|
||||||
COMPUTE_EDGES: false
|
|
||||||
INPUT:
|
|
||||||
name: dem.tif
|
|
||||||
type: raster
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: 4af1fe42d2a75c92eb9edcad9d77bd6cae958c0212de11e320fad689
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:nearblack
|
- algorithm: gdal:nearblack
|
||||||
name: Near black
|
name: Near black
|
||||||
params:
|
params:
|
||||||
@ -119,159 +281,132 @@ tests:
|
|||||||
hash: fff4a08498e93494f3f2cf1a9074451e6fd68341849aedc9e2c45e6a
|
hash: fff4a08498e93494f3f2cf1a9074451e6fd68341849aedc9e2c45e6a
|
||||||
type: rasterhash
|
type: rasterhash
|
||||||
|
|
||||||
- algorithm: gdal:colorrelief
|
- algorithm: gdal:polygonize
|
||||||
name: Color relief
|
name: Polygonize
|
||||||
|
params:
|
||||||
|
BAND: 1
|
||||||
|
EIGHT_CONNECTEDNESS: false
|
||||||
|
FIELD: DN
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
name: expected/gdal/polygonize.gml
|
||||||
|
type: vector
|
||||||
|
|
||||||
|
- algorithm: gdal:proximity
|
||||||
|
name: Proximity
|
||||||
|
params:
|
||||||
|
BAND: 1
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
MAX_DISTANCE: 0.0
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
REPLACE: 0.0
|
||||||
|
UNITS: 1
|
||||||
|
VALUES: '90'
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 32802271d1ce083ca14078bfefaef6300ae8809af11f6a4270583d0c
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:roughness
|
||||||
|
name: Roughness
|
||||||
params:
|
params:
|
||||||
BAND: 1
|
BAND: 1
|
||||||
COLOR_TABLE:
|
|
||||||
name: custom/color_relief.txt
|
|
||||||
type: file
|
|
||||||
COMPUTE_EDGES: false
|
COMPUTE_EDGES: false
|
||||||
INPUT:
|
INPUT:
|
||||||
name: dem.tif
|
name: dem.tif
|
||||||
type: raster
|
type: raster
|
||||||
MATCH_MODE: '0'
|
OPTIONS: ''
|
||||||
results:
|
results:
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
hash: f714597fadc9cfc3f5263dc0e35f7c6ba285de238dce439e4988faac
|
hash: ee2b317e022da1001378fac60c9b613a74d3566b9870f9d121e6e322
|
||||||
type: rasterhash
|
type: rasterhash
|
||||||
|
|
||||||
- algorithm: gdal:gridaverage
|
- algorithm: gdal:sieve
|
||||||
name: Moving Average interpolation
|
name: Sieve
|
||||||
params:
|
params:
|
||||||
ANGLE: 0.0
|
EIGHT_CONNECTEDNESS: false
|
||||||
INPUT:
|
|
||||||
name: custom/points_values.gml
|
|
||||||
type: vector
|
|
||||||
MIN_POINTS: 0.0
|
|
||||||
NODATA: 0.0
|
|
||||||
RADIUS_1: 0.01
|
|
||||||
RADIUS_2: 0.01
|
|
||||||
RTYPE: '5'
|
|
||||||
Z_FIELD: EC
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: 3542d928bccee955b1c426cac7b698c603c9a385429ca529758083bf
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:griddatametrics
|
|
||||||
name: Data Metrics interpolation
|
|
||||||
params:
|
|
||||||
ANGLE: 0.0
|
|
||||||
INPUT:
|
|
||||||
name: custom/points_values.gml
|
|
||||||
type: vector
|
|
||||||
METRIC: '1'
|
|
||||||
MIN_POINTS: 0.0
|
|
||||||
NODATA: 0.0
|
|
||||||
RADIUS_1: 0.01
|
|
||||||
RADIUS_2: 0.02
|
|
||||||
RTYPE: '5'
|
|
||||||
Z_FIELD: EC
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: 220953299b18286b57ce093a054323e59add7c78c0429a02e51b4ad4
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:gridinversedistance
|
|
||||||
name: IDW interpolation
|
|
||||||
params:
|
|
||||||
ANGLE: 0.0
|
|
||||||
INPUT:
|
|
||||||
name: custom/points_values.gml
|
|
||||||
type: vector
|
|
||||||
MAX_POINTS: 0.0
|
|
||||||
MIN_POINTS: 0.0
|
|
||||||
NODATA: 0.0
|
|
||||||
POWER: 2.0
|
|
||||||
RADIUS_1: 0.0
|
|
||||||
RADIUS_2: 0.0
|
|
||||||
RTYPE: '5'
|
|
||||||
SMOTHING: 0.0
|
|
||||||
Z_FIELD: EC
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: 2033731d6fd653da391a2633158f0ea755d96e1b2b2c60a9100332b1
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:gridnearestneighbor
|
|
||||||
name: Nearest Neighbor interpolation
|
|
||||||
params:
|
|
||||||
ANGLE: 0.0
|
|
||||||
INPUT:
|
|
||||||
name: custom/points_values.gml
|
|
||||||
type: vector
|
|
||||||
NODATA: 0.0
|
|
||||||
RADIUS_1: 0.01
|
|
||||||
RADIUS_2: 0.02
|
|
||||||
RTYPE: '5'
|
|
||||||
Z_FIELD: EC
|
|
||||||
results:
|
|
||||||
OUTPUT:
|
|
||||||
hash: 6ee933d53e1a2ffadfd88333919255e68bb945e833e50d112124bfd5
|
|
||||||
type: rasterhash
|
|
||||||
|
|
||||||
- algorithm: gdal:cliprasterbyextent
|
|
||||||
name: Clip raster by extent
|
|
||||||
params:
|
|
||||||
BIGTIFF: '0'
|
|
||||||
COMPRESS: '4'
|
|
||||||
INPUT:
|
INPUT:
|
||||||
name: dem.tif
|
name: dem.tif
|
||||||
type: raster
|
type: raster
|
||||||
JPEGCOMPRESSION: 75
|
MASK_LAYER:
|
||||||
PREDICTOR: 1
|
name: dem.tif
|
||||||
PROJWIN: 18.67551824296977,18.697800756150787,45.78984181545589,45.804309302274866
|
type: raster
|
||||||
RTYPE: '5'
|
NO_MASK: false
|
||||||
TFW: false
|
THRESHOLD: 10
|
||||||
TILED: false
|
|
||||||
ZLEVEL: 6
|
|
||||||
results:
|
results:
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
hash: 9913a7c0e1ced2c2ce1cd8f0e8103475bc2b0dd4d1d0adafe4920f93
|
hash: 1ea6a8c838add299dc3f6f9f529eb5945664f68bae97be9ca80b1754
|
||||||
type: rasterhash
|
type: rasterhash
|
||||||
|
|
||||||
- algorithm: gdal:cliprasterbymasklayer
|
- algorithm: gdal:slope
|
||||||
name: Clip raster by mask layer
|
name: Slope
|
||||||
params:
|
params:
|
||||||
ALPHA_BAND: false
|
AS_PERCENT: false
|
||||||
BIGTIFF: '0'
|
BAND: 1
|
||||||
COMPRESS: '4'
|
COMPUTE_EDGES: false
|
||||||
CROP_TO_CUTLINE: true
|
|
||||||
INPUT:
|
INPUT:
|
||||||
name: dem.tif
|
name: dem.tif
|
||||||
type: raster
|
type: raster
|
||||||
JPEGCOMPRESSION: 75
|
OPTIONS: ''
|
||||||
KEEP_RESOLUTION: false
|
SCALE: 1.0
|
||||||
MASK:
|
ZEVENBERGEN: false
|
||||||
name: custom/polygon_mask.gml
|
|
||||||
type: vector
|
|
||||||
NO_DATA: ''
|
|
||||||
PREDICTOR: 1
|
|
||||||
RTYPE: '5'
|
|
||||||
TFW: false
|
|
||||||
TILED: false
|
|
||||||
ZLEVEL: 6
|
|
||||||
results:
|
results:
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
hash: 4f4720e4efe59a7f238f622659917bbeb5262369d15d5e2917dbcf8b
|
hash: 319c470de3315f440371d5df8a6e478a8ecaf1cf904a013dbf1b3a6a
|
||||||
type: rasterhash
|
type: rasterhash
|
||||||
|
|
||||||
- algorithm: gdal:proximity
|
- algorithm: gdal:tpitopographicpositionindex
|
||||||
name: Proximity raster
|
name: Topographic position index
|
||||||
params:
|
params:
|
||||||
BUF_VAL: -1
|
BAND: 1
|
||||||
|
COMPUTE_EDGES: false
|
||||||
INPUT:
|
INPUT:
|
||||||
name: custom/dem_boolean.tif
|
name: dem.tif
|
||||||
type: raster
|
type: raster
|
||||||
MAX_DIST: -1
|
OPTIONS: ''
|
||||||
NODATA: -1
|
|
||||||
RTYPE: '5'
|
|
||||||
UNITS: '0'
|
|
||||||
VALUES: '1'
|
|
||||||
results:
|
results:
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
hash: a497763f44380ec33acab572a926a6516e875f2284fc55e702abbdfc
|
hash: 4af1fe42d2a75c92eb9edcad9d77bd6cae958c0212de11e320fad689
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:triterrainruggednessindex
|
||||||
|
name: Terrain ruggedness index
|
||||||
|
params:
|
||||||
|
BAND: 1
|
||||||
|
COMPUTE_EDGES: false
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
OPTIONS: ''
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: c888764a08fae72a129dfff4947149c3185532373d33d4537ecf409c
|
||||||
|
type: rasterhash
|
||||||
|
|
||||||
|
- algorithm: gdal:warpreproject
|
||||||
|
name: Warp (gdalwarp)
|
||||||
|
params:
|
||||||
|
DATA_TYPE: 5
|
||||||
|
INPUT:
|
||||||
|
name: dem.tif
|
||||||
|
type: raster
|
||||||
|
MULTITHREADING: false
|
||||||
|
NODATA: 0.0
|
||||||
|
OPTIONS: ''
|
||||||
|
RESAMPLING: 4
|
||||||
|
SOURCE_CRS: EPSG:4326
|
||||||
|
TARGET_CRS: EPSG:3857
|
||||||
|
TARGET_RESOLUTION: 0.0
|
||||||
|
results:
|
||||||
|
OUTPUT:
|
||||||
|
hash: 77045222f6f9d8e5fda795d1d5288eae400c51522e621861aeab68e0
|
||||||
type: rasterhash
|
type: rasterhash
|
||||||
|
|
||||||
# - algorithm: gdal:merge
|
# - algorithm: gdal:merge
|
||||||
|
Loading…
x
Reference in New Issue
Block a user