24.2.3. Raster extraction
24.2.3.1. Clip raster by extent
Clips any GDAL-supported raster file to a given extent.
This algorithm is derived from the GDAL warp utility.
Default menu:
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input layer |
|
[raster] |
The input raster |
Clipping extent |
|
[extent] |
Extent that should be used for the output raster. Only pixels within the specified bounding box will be included in the output. |
Assign a specified nodata value to output bands Opţional |
|
[number] Default: None |
Defines a value that should be inserted for the nodata values in the output raster |
Additional creation options Opţional |
|
[string] Default: «» |
Pentru adăugarea uneia sau mai multor opțiuni de control la crearea rasterului (ex.: culori, dimensiunea blocului, compresia fișierului…). Pentru ușurință, vă puteți baza pe profiluri predefinite (consultați Secțiunea opțiunilor driver-ului GDAL). For Batch Process: separate multiple options with a pipe
character ( |
Output data type |
|
[enumeration] Default: 0 |
Defines the format of the output raster file. Opţiuni:
|
Additional command-line parameters Opţional |
|
[string] Default: None |
Add extra GDAL command line options |
Clipped (extent) |
|
[raster] Default: «[Save to temporary file]» |
Specification of the output raster layer. One of:
The file encoding can also be changed here |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Clipped (extent) |
|
[raster] |
Output raster layer clipped by the given extent |
Python code
Algorithm ID: gdal:cliprasterbyextent
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
24.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:
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input layer |
|
[raster] |
The input raster |
Mask layer |
|
[vector: polygon] |
Vector mask for clipping the raster |
Source CRS |
|
[crs] |
Set the coordinate reference to use for the input raster |
Target CRS |
|
[crs] |
Set the coordinate reference to use for the mask layer |
Assign a specified nodata value to output bands Opţional |
|
[number] Default: None |
Defines a value that should be inserted for the nodata values in the output raster |
Create an output alpha band |
|
[boolean] Default: False |
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] Default: False |
The resolution of the output raster will not be changed |
Set output file resolution |
|
[boolean] Default: False |
Shall the output resolution (cell size) be specified |
X Resolution to output bands Opţional |
|
[number] Default: None |
The width of the cells in the output raster |
Y Resolution to output band Opţional |
|
[number] Default: None |
The height of the cells in the output raster |
Use multithreaded warping implementation |
|
[boolean] Default: False |
Two threads will be used to process chunks of image and perform input/output operation simultaneously. Note that computation is not multithreaded itself. |
Additional creation options Opţional |
|
[string] Default: «» |
Pentru adăugarea uneia sau mai multor opțiuni de control la crearea rasterului (ex.: culori, dimensiunea blocului, compresia fișierului…). Pentru ușurință, vă puteți baza pe profiluri predefinite (consultați Secțiunea opțiunilor driver-ului GDAL). For Batch Process: separate multiple options with a pipe
character ( |
Output data type |
|
[enumeration] Default: 0 |
Defines the format of the output raster file. Opţiuni:
|
Additional command-line parameters Opţional |
|
[string] Default: None |
Add extra GDAL command line options |
Clipped (mask) |
|
[raster] Default: «[Save to temporary file]» |
Specification of the output raster layer. One of:
The file encoding can also be changed here |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Clipped (mask) |
|
[raster] |
Output raster layer clipped by the vector layer |
Python code
Algorithm ID: gdal:cliprasterbymasklayer
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
24.2.3.3. Curbe de nivel
Extracts contour lines from any GDAL-supported elevation raster.
This algorithm is derived from the GDAL contour utility.
Default menu:
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input layer |
|
[raster] |
Input raster |
Band number |
|
[raster band] Default: 1 |
Raster band to create the contours from |
Interval between contour lines |
|
[number] 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) Opţional |
|
[string] Default: «ELEV» |
Provides a name for the attribute in which to put the elevation. |
Offset from zero relative to which to interpret intervals Opţional |
|
[number] Default: 0.0 |
|
Produce 3D vector |
|
[boolean] Default: False |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[boolean] Default: False |
Ignores any nodata values in the dataset. |
Input pixel value to treat as „nodata” Opţional |
|
[number] Default: None |
Defines a value that should be inserted for the nodata values in the output raster |
Additional command-line parameters Opţional |
|
[string] Default: None |
Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation. |
Contours |
|
[vector: line] Default: «[Save to temporary file]» |
Specification of the output vector layer. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Contours |
|
[vector: line] |
Output vector layer with contour lines |
Python code
Algorithm ID: gdal:contour
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
24.2.3.4. Contour Polygons
Extracts contour polygons from any GDAL-supported elevation raster.
This algorithm is derived from the GDAL contour utility.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input layer |
|
[raster] |
Input raster |
Band number |
|
[raster band] Default: 1 |
Raster band to create the contours from |
Interval between contour lines |
|
[number] 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 Opţional |
|
[number] Default: 0.0 |
|
Attribute name for minimum elevation of contour polygon Opţional |
|
[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 Opţional |
|
[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. |
Produce 3D vector |
|
[boolean] Default: False |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[boolean] Default: False |
Ignores any nodata values in the dataset. |
Input pixel value to treat as „nodata” Opţional |
|
[number] Default: None |
Defines a value that should be inserted for the nodata values in the output raster |
Additional command-line parameters Opţional |
|
[string] Default: None |
Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation. |
Contours |
|
[vector: polygon] Default: «[Save to temporary file]» |
Specification of the output vector layer. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Contours |
|
[vector: polygon] |
Output vector layer with contour polygons |
Python code
Algorithm ID: gdal:contour_polygon
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.