27.2.3. Raster extraction
27.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:
パラメーター
基本パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
入力レイヤ |
|
[ラスタ] |
The input raster |
Clipping 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 |
|
[ブール値] デフォルト: False |
If checked, the output file is assigned the input layer CRS. |
Assign a specified nodata value to output bands オプション |
|
[数値] デフォルト: なし |
Defines a value that should be inserted for the nodata values in the output raster |
Clipped (extent) |
|
[ラスタ] デフォルト: |
出力ラスタレイヤを指定します。次のいずれかです:
|
詳細パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
Additional creation options オプション |
|
[文字列] デフォルト: '' |
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). For Batch Process: separate multiple options with a pipe
character ( |
出力のデータ型 |
|
[列挙型] デフォルト: 0 |
Defines the format of the output raster file. オプション:
Available options depend on the GDAL version built with QGIS (see menu) |
Additional command-line parameters オプション |
|
[文字列] デフォルト: なし |
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})
algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。
27.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:
パラメーター
基本パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
入力レイヤ |
|
[ラスタ] |
The input raster |
Mask layer |
|
[ベクタ:ポリゴン] |
Vector mask for clipping the raster |
Source CRS |
|
[crs] |
Set the coordinate reference to use for the input raster |
ラスタのCRS |
|
[crs] |
Set the coordinate reference to use for the mask layer |
Target extent
オプション |
|
[範囲] |
Extent of the output file to be created Available methods are:
|
Assign a specified nodata value to output bands オプション |
|
[数値] デフォルト: なし |
Defines a value that should be inserted for the nodata values in the output raster |
Create an output alpha band |
|
[ブール値] デフォルト: 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 |
|
[ブール値] デフォルト: True |
Applies the vector layer extent to the output raster if checked. |
Keep resolution of input raster |
|
[ブール値] デフォルト: False |
The resolution of the output raster will not be changed |
Set output file resolution |
|
[ブール値] デフォルト: False |
Shall the output resolution (cell size) be specified |
X Resolution to output bands オプション |
|
[数値] デフォルト: なし |
The width of the cells in the output raster |
Y Resolution to output band オプション |
|
[数値] デフォルト: なし |
The height of the cells in the output raster |
Use multithreaded warping implementation |
|
[ブール値] デフォルト: False |
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) |
|
[ラスタ] デフォルト: |
出力ラスタレイヤを指定します。次のいずれかです:
|
詳細パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
Additional creation options オプション |
|
[文字列] デフォルト: '' |
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). For Batch Process: separate multiple options with a pipe
character ( |
出力のデータ型 |
|
[列挙型] デフォルト: 0 |
Defines the format of the output raster file. オプション:
Available options depend on the GDAL version built with QGIS (see menu) |
Additional command-line parameters オプション |
|
[文字列] デフォルト: なし |
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})
algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。
27.2.3.3. 等高線
Extracts contour lines from any GDAL-supported elevation raster.
This algorithm is derived from the GDAL contour utility.
Default menu:
パラメーター
基本パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
入力レイヤ |
|
[ラスタ] |
Input raster |
バンド番号 |
|
[ラスタのバンド] デフォルト: 1 |
Raster band to create the contours from |
Interval between contour lines |
|
[数値] デフォルト: 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) オプション |
|
[文字列] Default: 'ELEV' |
Provides a name for the attribute in which to put the elevation. |
Offset from zero relative to which to interpret intervals オプション |
|
[数値] デフォルト: 0.0 |
|
Contours |
|
[ベクタ:ライン] デフォルト: |
出力するベクタレイヤの指定。次のいずれかです:
|
詳細パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
Produce 3D vector |
|
[ブール値] デフォルト: False |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[ブール値] デフォルト: False |
Ignores any nodata values in the dataset. |
Input pixel value to treat as "nodata" オプション |
|
[数値] デフォルト: なし |
Defines a value that should be inserted for the nodata values in the output raster |
Additional command-line parameters オプション |
|
[文字列] デフォルト: なし |
Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation. |
出力
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
Contours |
|
[ベクタ:ライン] |
Output vector layer with contour lines |
Python コード
Algorithm ID: gdal:contour
import processing
processing.run("algorithm_id", {parameter_dictionary})
algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。
27.2.3.4. Contour Polygons
Extracts contour polygons from any GDAL-supported elevation raster.
This algorithm is derived from the GDAL contour utility.
パラメーター
基本パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
入力レイヤ |
|
[ラスタ] |
Input raster |
バンド番号 |
|
[ラスタのバンド] デフォルト: 1 |
Raster band to create the contours from |
Interval between contour lines |
|
[数値] デフォルト: 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 オプション |
|
[数値] デフォルト: 0.0 |
|
Attribute name for minimum elevation of contour polygon オプション |
|
[文字列] 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 オプション |
|
[文字列] 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 |
|
[ベクタ:ポリゴン] デフォルト: |
出力するベクタレイヤの指定。次のいずれかです:
|
詳細パラメータ
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
Produce 3D vector |
|
[ブール値] デフォルト: False |
Forces production of 3D vectors instead of 2D. Includes elevation at every vertex. |
Treat all raster values as valid |
|
[ブール値] デフォルト: False |
Ignores any nodata values in the dataset. |
Input pixel value to treat as "nodata" オプション |
|
[数値] デフォルト: なし |
Defines a value that should be inserted for the nodata values in the output raster |
Additional command-line parameters オプション |
|
[文字列] デフォルト: なし |
Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation. |
出力
ラベル |
名前 |
タイプ |
説明 |
---|---|---|---|
Contours |
|
[ベクタ:ポリゴン] |
Output vector layer with contour polygons |
Python コード
Algorithm ID: gdal:contour_polygon
import processing
processing.run("algorithm_id", {parameter_dictionary})
algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。