Wichtig
Übersetzen ist eine Gemeinschaftsleistung Sie können mitmachen. Diese Seite ist aktuell zu 55.00% übersetzt.
28.2.3. Raster extraction
28.2.3.1. Clip raster by extent
Clips any GDAL-supported raster file to a given extent.
This algorithm is derived from the GDAL translate utility.
Default menu:
Parameter
Grundlegende Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Eingabe-Layer |
|
[Raster] |
The input raster |
Clipping extent |
|
[Ausdehnung] |
Extent that should be used for the output raster. Only pixels within the specified bounding box will be included in the output. Verfügbare Methoden sind:
|
Override the projection for the output file |
|
[Boolean] Standard: falsch |
If checked, the output file is assigned the input layer CRS. |
Assign a specified NoData value to output bands Optional |
|
[Zahl] Default: None |
Defines a value that should be inserted for the NoData values in the output raster |
Clipped (extent) |
|
[Raster] Standard: |
Specification of the output raster layer. One of:
|
Fortgeschrittene Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Additional creation options Optional |
|
[string] Default: ‚‘ |
For adding one or more creation options that control the raster to be created (colors, block size, file compression…). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Output data type |
|
[enumeration] Default: 0 |
Defines the format of the output raster file. Optionen:
Available options depend on the GDAL version built with QGIS (see menu) |
Additional command-line parameters Optional |
|
[string] Default: None |
Add extra GDAL command line options |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Clipped (extent) |
|
[Raster] |
Output raster layer clipped by the given extent |
Pythoncode
Algorithm ID: gdal:cliprasterbyextent
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungsalgorithmen über die Python-Konsole.
28.2.3.2. Clip raster by mask layer
Clips any GDAL-supported raster by a vector mask layer.
This algorithm is derived from the GDAL warp utility.
Default menu:
Parameter
Grundlegende Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Eingabe-Layer |
|
[Raster] |
The input raster |
Mask layer |
|
[Vektor: Polygon] |
Vector mask for clipping the raster |
Source CRS |
|
[KBS] |
Set the coordinate reference to use for the input raster |
Ziel KBS |
|
[KBS] |
Set the coordinate reference to use for the mask layer |
Target extent Optional |
|
[Ausdehnung] |
Extent of the output file to be created Verfügbare Methoden sind:
|
Assign a specified NoData value to output bands Optional |
|
[Zahl] Default: None |
Defines a value that should be inserted for the NoData values in the output raster |
Create an output alpha band |
|
[Boolean] Standard: falsch |
Creates an alpha band for the result. The alpha band then includes the transparency values of the pixels. |
Match the extent of the clipped raster to the extent of the mask layer |
|
[Boolean] Default: True |
Applies the vector layer extent to the output raster if checked. |
Keep resolution of input raster |
|
[Boolean] Standard: falsch |
The resolution of the output raster will not be changed |
Set output file resolution |
|
[Boolean] Standard: falsch |
Shall the output resolution (cell size) be specified |
X Resolution to output bands Optional |
|
[Zahl] Default: None |
The width of the cells in the output raster |
Y Resolution to output band Optional |
|
[Zahl] Default: None |
The height of the cells in the output raster |
Use multithreaded warping implementation |
|
[Boolean] Standard: falsch |
Two threads will be used to process chunks of image and perform input/output operation simultaneously. Note that computation is not multithreaded itself. |
Clipped (mask) |
|
[Raster] Standard: |
Specification of the output raster layer. One of:
|
Fortgeschrittene Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Additional creation options Optional |
|
[string] Default: ‚‘ |
For adding one or more creation options that control the raster to be created (colors, block size, file compression…). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Output data type |
|
[enumeration] Default: 0 |
Defines the format of the output raster file. Optionen:
Available options depend on the GDAL version built with QGIS (see menu) |
Additional command-line parameters Optional |
|
[string] Default: None |
Add extra GDAL command line options |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Clipped (mask) |
|
[Raster] |
Output raster layer clipped by the vector layer |
Pythoncode
Algorithm ID: gdal:cliprasterbymasklayer
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungsalgorithmen über die Python-Konsole.
28.2.3.3. Contour
Extracts contour lines from any GDAL-supported elevation raster.
This algorithm is derived from the GDAL contour utility.
Default menu:
Parameter
Grundlegende Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Eingabe-Layer |
|
[Raster] |
Input raster |
Band number |
|
[raster band] Standard: 1 |
Raster band to create the contours from |
Interval between contour lines |
|
[Zahl] Default: 10.0 |
Defines the interval between the contour lines in the given units of the elevation raster (minimum value 0) |
Attribute name (if not set, no elevation attribute is attached) Optional |
|
[string] Default: ‚ELEV‘ |
Provides a name for the attribute in which to put the elevation. |
Offset from zero relative to which to interpret intervals Optional |
|
[Zahl] Default: 0.0 |
|
Contours |
|
[vector: line] Standard: |
Specification of the output vector layer. One of:
|
Fortgeschrittene Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Produce 3D vector |
|
[Boolean] Standard: falsch |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[Boolean] Standard: falsch |
Ignores any NoData values in the dataset. |
Input pixel value to treat as „NoData“ Optional |
|
[Zahl] Default: None |
Defines a value that should be inserted for the NoData values in the output raster |
Additional command-line parameters Optional |
|
[string] Default: None |
Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation. |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Contours |
|
[vector: line] |
Output vector layer with contour lines |
Pythoncode
Algorithm ID: gdal:contour
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungsalgorithmen über die Python-Konsole.
28.2.3.4. Contour Polygons
Extracts contour polygons from any GDAL-supported elevation raster.
This algorithm is derived from the GDAL contour utility.
Parameter
Grundlegende Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Eingabe-Layer |
|
[Raster] |
Input raster |
Band number |
|
[raster band] Standard: 1 |
Raster band to create the contours from |
Interval between contour lines |
|
[Zahl] Default: 10.0 |
Defines the interval between the contour lines in the given units of the elevation raster (minimum value 0) |
Offset from zero relative to which to interpret intervals Optional |
|
[Zahl] Default: 0.0 |
|
Attribute name for minimum elevation of contour polygon Optional |
|
[string] Default: ‚ELEV_MIN‘ |
Provides a name for the attribute in which to put the minimum elevation of contour polygon. If not provided no minimum elevation attribute is attached. |
Attribute name for maximum elevation of contour polygon Optional |
|
[string] Default: ‚ELEV_MAX‘ |
Provides a name for the attribute in which to put the maximum elevation of contour polygon. If not provided no maximum elevation attribute is attached. |
Contours |
|
[Vektor: Polygon] Standard: |
Specification of the output vector layer. One of:
|
Fortgeschrittene Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Produce 3D vector |
|
[Boolean] Standard: falsch |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[Boolean] Standard: falsch |
Ignores any NoData values in the dataset. |
Input pixel value to treat as „NoData“ Optional |
|
[Zahl] Default: None |
Defines a value that should be inserted for the NoData values in the output raster |
Additional command-line parameters Optional |
|
[string] Default: None |
Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation. |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
---|---|---|---|
Contours |
|
[Vektor: Polygon] |
Output vector layer with contour polygons |
Pythoncode
Algorithm ID: gdal:contour_polygon
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungsalgorithmen über die Python-Konsole.