Важно
Translation is a community effort you can join. This page is currently translated at 39.25%.
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:
Параметры
Basic parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Исходный слой |
|
[растр] |
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. Available methods are:
|
Override the projection for the output file |
|
[логическое значение] По умолчанию: Ложь |
If checked, the output file is assigned the input layer CRS. |
Assign a specified NoData value to output bands Optional |
|
[number] Default: None |
Defines a value that should be inserted for the NoData values in the output raster |
Clipped (extent) |
|
[растр] По умолчанию: |
Specification of the output raster layer. One of:
|
Advanced parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
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. Options:
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 |
Результаты
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Clipped (extent) |
|
[растр] |
Output raster layer clipped by the given extent |
Код на Python
Algorithm ID: gdal:cliprasterbyextent
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли Python.
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:
Параметры
Basic parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Исходный слой |
|
[растр] |
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 |
Target extent Optional |
|
[extent] |
Extent of the output file to be created Available methods are:
|
Assign a specified NoData value to output bands Optional |
|
[number] Default: None |
Defines a value that should be inserted for the NoData values in the output raster |
Create an output alpha band |
|
[логическое значение] По умолчанию: Ложь |
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 |
|
[логическое значение] Default: True |
Applies the vector layer extent to the output raster if checked. |
Keep resolution of input raster |
|
[логическое значение] По умолчанию: Ложь |
The resolution of the output raster will not be changed |
Set output file resolution |
|
[логическое значение] По умолчанию: Ложь |
Shall the output resolution (cell size) be specified |
X Resolution to output bands Optional |
|
[number] Default: None |
The width of the cells in the output raster |
Y Resolution to output band Optional |
|
[number] Default: None |
The height of the cells in the output raster |
Use multithreaded warping implementation |
|
[логическое значение] По умолчанию: Ложь |
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) |
|
[растр] По умолчанию: |
Specification of the output raster layer. One of:
|
Advanced parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
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. Options:
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 |
Результаты
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Clipped (mask) |
|
[растр] |
Output raster layer clipped by the vector layer |
Код на Python
Algorithm ID: gdal:cliprasterbymasklayer
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли Python.
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:
Параметры
Basic parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Исходный слой |
|
[растр] |
Input raster |
Номер канала |
|
[канал растра] 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) 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 |
|
[number] Default: 0.0 |
|
Contours |
|
[vector: line] По умолчанию: |
Specification of the output vector layer. One of:
|
Advanced parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Produce 3D vector |
|
[логическое значение] По умолчанию: Ложь |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[логическое значение] По умолчанию: Ложь |
Ignores any NoData values in the dataset. |
Input pixel value to treat as «NoData» Optional |
|
[number] 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. |
Результаты
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Contours |
|
[vector: line] |
Output vector layer with contour lines |
Код на Python
Algorithm ID: gdal:contour
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли Python.
28.2.3.4. Contour Polygons
Extracts contour polygons from any GDAL-supported elevation raster.
This algorithm is derived from the GDAL contour utility.
Параметры
Basic parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Исходный слой |
|
[растр] |
Input raster |
Номер канала |
|
[канал растра] 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 Optional |
|
[number] 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 |
|
[vector: polygon] По умолчанию: |
Specification of the output vector layer. One of:
|
Advanced parameters
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Produce 3D vector |
|
[логическое значение] По умолчанию: Ложь |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[логическое значение] По умолчанию: Ложь |
Ignores any NoData values in the dataset. |
Input pixel value to treat as «NoData» Optional |
|
[number] 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. |
Результаты
Ярлык |
Имя |
Тип |
Описание |
---|---|---|---|
Contours |
|
[vector: polygon] |
Output vector layer with contour polygons |
Код на Python
Algorithm ID: gdal:contour_polygon
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли Python.