27.2.4. Raster miscellaneous

27.2.4.1. Build overviews (pyramids)

概要(ピラミッド)を作成できるラスタレイヤのレンダリング時間を高速化します。概要とは、ズームのレベルに応じてQGISで使用される、そのデータの低解像度コピーです。

This algorithm is derived from the GDAL addo utility.

Default menu: Raster ► Miscellaneous

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

入力レイヤ

INPUT

[ラスタ]

入力ラスタレイヤ

Remove all existing overviews

CLEAN

[ブール値]

デフォルト: False

Removes existing overviews from the raster. By default these are not removed.

詳細パラメータ

ラベル

名前

タイプ

説明

Overview levels

LEVELS

[文字列]

Default: '2 4 8 16'

入力ラスターレイヤーの元の解像度によって算出概要レベルの数を定義します。デフォルトでは、4つのレベルが考慮されます。

Resampling method

オプション

RESAMPLING

[列挙型]

デフォルト: 0

Calculates the overviews with a defined resampling method. Possible resampling methods are:

  • 0 -- Nearest Neighbour (nearest)

  • 1 -- Average (average)

  • 2 -- Gaussian (gauss)

  • 3 -- Cubic Convolution (cubic)

  • 4 -- B-Spline Convolution (cubicspline)

  • 5 -- Lanczos Windowed Sinc (lanczos)

  • 6 -- Average MP (average_mp)

  • 7 -- Average in Mag/Phase Space (average_magphase)

  • 8 -- Mode (mode)

Overviews format

オプション

FORMAT

[列挙型]

デフォルト: 0

The overviews can be stored internally, or externally as GTiff or ERDAS Imagine file. By default the overviews are stored in the output raster. Possible formats methods are:

  • 0 -- Internal (if possible)

  • 1 -- External (GTiff .ovr)

  • 2 -- External (ERDAS Imagine .aux)

Additional command-line parameters

オプション

EXTRA

[文字列]

デフォルト: なし

Add extra GDAL command line options

出力

ラベル

名前

タイプ

説明

Pyramidized

OUTPUT

[ラスタ]

Output raster layer with overviews

Python コード

Algorithm ID: gdal:overviews

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.2. Build virtual raster

入力GDALでサポートされているラスターのリストのモザイクであるVRT(仮想データセット)を構築します。モザイクを使用すると、複数のラスターファイルをマージできます。

This algorithm is derived from the GDAL buildvrt utility.

Default menu: Raster ► Miscellaneous

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

入力レイヤ

INPUT

[ラスタ] [リスト]

GDAL-supported raster layers.

Resolution

RESOLUTION

[列挙型]

デフォルト: 0

The output resolution of the mosaic. By default the average resolution of the raster files will be chosen.

オプション:

  • 0 --- Average (average)

  • 1 --- Highest (highest)

  • 2 --- Lowest (lowest)

Place each input file into a separate band

SEPARATE

[ブール値]

デフォルト: False

With 'True' you can define that each raster file goes into a separated stacked band in the VRT band.

Allow projection difference

PROJ_DIFFERENCE

[ブール値]

デフォルト: False

Allows that the output bands have different projections derived from the projection of the input raster layers.

Virtual

OUTPUT

[ラスタ]

デフォルト: [一時ファイルに保存]

出力ラスタレイヤを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Add alpha mask band to VRT when source raster has none

ADD_ALPHA

[ブール値]

デフォルト: False

Adds an alpha mask band to the VRT when the source raster has none.

Override projection for the output file

オプション

ASSIGN_CRS

[crs]

デフォルト: なし

Overrides the projection for the output file. No reprojection is done.

Resampling algorithm

RESAMPLING

[列挙型]

デフォルト: 0

The resampling algorithm to be used Options:

  • 0 --- Nearest Neighbour (nearest)

  • 1 --- Bilinear (bilinear)

  • 2 --- Cubic Convolution (cubic)

  • 3 --- B-Spline Convolution (cubicspline)

  • 4 --- Lanczos Windowed Sinc (lanczos)

  • 5 --- Average (average)

  • 6 --- Mode (mode)

Nodata value(s) for input bands (space separated)

オプション

SRC_NODATA

[文字列]

デフォルト: なし

Space separated Nodata value(s) for input band(s)

Additional command-line parameters

EXTRA

[文字列]

デフォルト: なし

Add extra GDAL command line options

出力

ラベル

名前

タイプ

説明

Virtual

OUTPUT

[ラスタ]

出力ラスタレイヤ

Python コード

Algorithm ID: gdal:buildvirtualraster

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.3. gdal2tiles

Generates a directory with small tiles and metadata, following the OSGeo Tile Map Service Specification. See also the OpenGIS Web Map Tile Service Implementation Standard. Simple web pages with viewers based on Google Maps, OpenLayers and Leaflet are generated as well. To explore your maps on-line in the web browser, you only need to upload the generated directory onto a web server.

This algorithm also creates the necessary metadata for Google Earth (KML SuperOverlay), in case the supplied map uses EPSG:4326 projection.

ESRI world files and embedded georeferencing is used during tile generation, but you can publish a picture without proper georeferencing too.

This algorithm is derived from the GDAL gdal2tiles utility.

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

入力レイヤ

INPUT

[ラスタ]

GDAL-supported raster layer.

Tile cutting profile

PROFILE

[列挙型]

デフォルト: 0

次のいずれかです:

  • 0 --- Mercator (mercator)

  • 1 --- Geodetic (geodetic)

  • 2 --- Raster (raster)

Zoom levels to render

オプション

ZOOM

[文字列]

デフォルト: ''

Web viewer to generate

VIEWER

[enumerate]

デフォルト: 0

次のいずれかです:

  • 0 --- All (all)

  • 1 --- GoogleMaps (google)

  • 2 --- OpenLayers (openlayers)

  • 3 --- Leaflet (leaflet)

  • 4 --- None (none)

Title of the map

オプション

TITLE

[文字列]

デフォルト: ''

Copyright of the map

COPYRIGHT

[文字列]

デフォルト: ''

出力フォルダ

OUTPUT

[フォルダ]

デフォルト: [一時フォルダに保存]

Specify the output folder for the tiles. One of:

  • 一時ディレクトリに保存

  • Save to Directory

詳細パラメータ

ラベル

名前

タイプ

説明

Resampling method

RESAMPLING

[列挙型]

デフォルト: 0

The resampling algorithm to be used Options:

  • 0 --- Average (average)

  • 1 --- Nearest neighbour (near)

  • 2 --- Bilinear (bilinear)

  • 3 --- Cubic (cubic)

  • 4 --- Cubic spline (cubicspline)

  • 5 --- Lanczos Windowed sinc (lanczos)

  • 6 --- Antialias (antialias)

The spatial reference system used for the source input data

オプション

SOURCE_CRS

[crs]

デフォルト: なし

Transparency value to assign to the input data

オプション

NODATA

[数値]

デフォルト: 0.0

URL address where the generated tiles are going to be published

オプション

URL

[文字列]

デフォルト: ''

Google Maps API key (http://code.google.com/apis/maps/signup.html)

オプション

GOOGLE_KEY

[文字列]

デフォルト: ''

Your Google maps API key.

Bing Maps API key (https://www.bingmapsportal.com/)

オプション

BING_KEY

[文字列]

デフォルト: ''

Your Bing maps API key.

Generate only missing files

RESUME

[ブール値]

デフォルト: False

Generate KML for Google Earth

KML

[ブール値]

デフォルト: False

Avoid automatic generation of KML files for EPSG:4326

NO_KML

[ブール値]

デフォルト: False

出力

ラベル

名前

タイプ

説明

出力フォルダ

OUTPUT

[フォルダ]

The output folder (for the tiles)

Python コード

Algorithm ID: gdal:gdal2tiles

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.4. Merge

簡単な方法でラスタファイルをマージします。ここでは、入力ラスタから擬似カラーテーブルを使用し、出力ラスタの種類を定義できます。すべての画像は同じ座標系でなければなりません。

This algorithm is derived from the GDAL merge utility.

Default menu: Raster ► Miscellaneous

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

入力レイヤ

INPUT

[ラスタ] [リスト]

入力ラスタレイヤ

Grab pseudocolor table from first layer

PCT

[ブール値]

デフォルト: False

The pseudocolor table from the first layer will be used for the coloring

Place each input file into a separate band

SEPARATE

[ブール値]

デフォルト: False

Place each input file into a separate band

出力のデータ型

DATA_TYPE

[列挙型]

デフォルト: 5

Defines the format of the output raster file. Options:

  • 0 --- Byte (Eight bit unsigned integer (quint8))

  • 1 --- Int16 (Sixteen bit signed integer (qint16))

  • 2 --- UInt16 (Sixteen bit unsigned integer (quint16))

  • 3 --- UInt32 (Thirty two bit unsigned integer (quint32))

  • 4 --- Int32 (Thirty two bit signed integer (qint32))

  • 5 --- Float32 (Thirty two bit floating point (float))

  • 6 --- Float64 (Sixty four bit floating point (double))

  • 7 --- CInt16 (Complex Int16)

  • 8 --- CInt32 (Complex Int32)

  • 9 --- CFloat32 (Complex Float32)

  • 10 --- CFloat64 (Complex Float64)

Available options depend on the GDAL version built with QGIS (see Help ► About menu)

出力レイヤ

OUTPUT

[ラスタ]

デフォルト: [一時ファイルに保存]

出力ラスタレイヤを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Input pixel value to treat as "nodata"

オプション

NODATA_INPUT

[数値]

デフォルト: なし

Ignores pixels from files being merged in with this pixel value

Assign specified "nodata" value to output

オプション

NODATA_OUTPUT

[数値]

デフォルト: なし

Assigns the specified nodata value to output bands.

Additional creation options

オプション

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 (|).

Additional command-line parameters

EXTRA

[文字列]

デフォルト: なし

Add extra GDAL command line options

出力

ラベル

名前

タイプ

説明

出力レイヤ

OUTPUT

[ラスタ]

出力ラスタレイヤ

Python コード

Algorithm ID: gdal:merge

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.5. Pansharpening

Performs a pan-sharpening operation. It can create a "classic" output dataset (such as GeoTIFF), or a VRT dataset describing the pan-sharpening operation.

See GDAL Pansharpen.

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

Spectral dataset

SPECTRAL

[ラスタ]

Input (spectral) raster layer

Panchromatic dataset

PANCHROMATIC

[ラスタ]

Input (panchromatic) raster layer

出力

OUTPUT

[ラスタ]

デフォルト: [一時ファイルに保存]

Specify the output (sharpened) raster layer. One of:

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Resampling algorithm

RESAMPLING

[列挙型]

デフォルト: 2

The resampling algorithm to be used Options:

  • 0 --- Nearest Neighbour (nearest)

  • 1 --- Bilinear (bilinear)

  • 2 --- Cubic (cubic)

  • 3 --- Cubic Spline (cubicspline)

  • 4 --- Lanczos Windowed Sinc (lanczos)

  • 5 --- Average (average)

Additional creation options

オプション

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 (|).

Additional command-line parameters

オプション

EXTRA

[文字列]

デフォルト: なし

Add extra GDAL command line options

出力

ラベル

名前

タイプ

説明

出力

OUTPUT

[ラスタ]

Output (sharpened) raster layer

Python コード

Algorithm ID: gdal:pansharp

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.6. ラスタ計算機

Command line raster calculator with numpy syntax. Use any basic arithmetic supported by numpy arrays, such as +, -, *, and / along with logical operators, such as >. Note that all input rasters must have the same dimensions, but no projection checking is performed.

See the GDAL Raster Calculator utility docs.

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

Input layer A

INPUT_A

[ラスタ]

First input raster layer (mandatory)

Number of raster band for A

BAND_A

[ラスタのバンド]

Band for input layer A (mandatory)

Input layer B

オプション

INPUT_B

[ラスタ]

デフォルト: なし

Second input raster layer

Number of raster band for B

オプション

BAND_B

[ラスタのバンド]

Band for input layer B

Input layer C

オプション

INPUT_C

[ラスタ]

デフォルト: なし

Third input raster layer

Number of raster band for C

オプション

BAND_C

[ラスタのバンド]

Band for input layer C

Input layer D

オプション

INPUT_D

[ラスタ]

デフォルト: なし

Fourth input raster layer

Number of raster band for D

オプション

BAND_D

[ラスタのバンド]

Band for input layer D

Input layer E

オプション

INPUT_E

[ラスタ]

デフォルト: なし

Fifth input raster layer

Number of raster band for E

オプション

BAND_E

[ラスタのバンド]

Band for input layer E

Input layer F

オプション

INPUT_F

[ラスタ]

Sixth input raster layer

Number of raster band for F

オプション

BAND_F

[ラスタのバンド]

デフォルト: なし

Band for input layer F

Calculation in gdalnumeric syntax using +-/* or any numpy array functions (i.e. logical_and())

FORMULA

[文字列]

デフォルト: ''

The calculation formula. Examples:

  • A*(A>0) --- outputs the value of the raster A if the value of A is greater than 0. If not, outputs 0.

  • A*(A>0 and A>B)--- outputs the value of A if that value is bigger than 0 and bigger than the value of B. If not, outputs 0.

  • A*logical_or(A<=177,A>=185) --- outputs the value of A if A <= 177 or A >= 185. If not, outputs 0.

  • sqrt(A*A+B*B) --- Outputs the square root of the sum of the value of A squared and the value of B squared.

Set output nodata value

オプション

NO_DATA

[数値]

デフォルト: なし

Value to use for nodata

Output extent

NEW in 3.24

オプション

INPUT

[範囲]

Custom extent of the output raster. Only available with GDAL 3.3+.

Available methods are:

  • Calculate from layer…: uses extent of a layer loaded in the current project

  • Calculate from layout map…: uses extent of a layout map item in the active project

  • Calculate from bookmark…: uses extent of a saved bookmark

  • Use map canvas extent

  • Draw on canvas: click and drag a rectangle delimiting the area to take into account

  • Enter the coordinates as xmin, xmax, ymin, ymax

Output raster type

RTYPE

[列挙型]

デフォルト: 5

出力ラスタファイルのデータ型を定義します。オプションは以下のとおり:

  • 0 --- Byte (Eight bit unsigned integer (quint8))

  • 1 --- Int16 (Sixteen bit signed integer (qint16))

  • 2 --- UInt16 (Sixteen bit unsigned integer (quint16))

  • 3 --- UInt32 (Thirty two bit unsigned integer (quint32))

  • 4 --- Int32 (Thirty two bit signed integer (qint32))

  • 5 --- Float32 (Thirty two bit floating point (float))

  • 6 --- Float64 (Sixty four bit floating point (double))

Available options depend on the GDAL version built with QGIS (see Help ► About menu)

Calculated

OUTPUT

[ラスタ]

デフォルト: [一時ファイルに保存]

Specify the output (calculated) raster layer. One of:

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Additional creation options

オプション

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 (|).

Additional command-line parameters

オプション

EXTRA

[文字列]

デフォルト: ''

Add extra GDAL command line options

出力

ラベル

名前

タイプ

説明

Calculated

OUTPUT

[ラスタ]

Output (calculated) raster layer

Python コード

Algorithm ID: gdal:rastercalculator

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.7. Raster information

The gdalinfo program lists various information about a GDAL supported raster dataset.

This algorithm is derived from the GDAL info utility.

Default menu: Raster ► Miscellaneous

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

入力レイヤ

INPUT

[ラスタ]

入力ラスタレイヤ

Force computation of the actual min/max values for each band

MIN_MAX

[ブール値]

デフォルト: False

Forces computation of the actual min/max values for each band in the dataset

Read and display image statistics (force computation if necessary)

STATS

[ブール値]

デフォルト: False

Reads and displays image statistics. Forces computation if no statistics are stored in an image.

Suppress GCP info

NO_GCP

[ブール値]

デフォルト: False

Suppresses ground control points list printing. It may be useful for datasets with huge amount of GCPs, such as L1B AVHRR or HDF4 MODIS which contain thousands of them.

Suppress metadata info

NO_METADATA

[ブール値]

デフォルト: False

Suppresses metadata printing. Some datasets may contain a lot of metadata strings.

Layer information

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

Specify the HTML file for output. One of:

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Additional command-line parameters

オプション

EXTRA

[文字列]

デフォルト: なし

Add extra GDAL command line options

出力

ラベル

名前

タイプ

説明

Layer information

OUTPUT

[html]

The HTML file containing information about the input raster layer

Python コード

Algorithm ID: gdal:gdalinfo

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.8. Retile

Retiles a set of input tiles. All the input tiles must be georeferenced in the same coordinate system and have a matching number of bands. Optionally pyramid levels are generated.

This algorithm is derived from the GDAL Retile utility.

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

Input files

INPUT

[ラスタ] [リスト]

The input raster files

タイルの幅

TILE_SIZE_X

[数値]

デフォルト: 256

Width of the tiles in pixels (minimum 0)

タイルの高さ

TILE_SIZE_Y

[数値]

デフォルト: 256

Height of the tiles in pixels (minimum 0)

Overlap in pixels between consecutive tiles

OVERLAP

[数値]

デフォルト: 0

Number of pyramid levels to build

LEVELS

[数値]

デフォルト: 1

Minimum: 0

出力フォルダ

OUTPUT

[フォルダ]

デフォルト: [一時フォルダに保存]

Specify the output folder for the tiles. One of:

  • 一時ディレクトリに保存

  • Save to Directory

CSV file containing the tile(s) georeferencing information

OUTPUT_CSV

[ファイル]

デフォルト: [出力をスキップ]

Specify the output file for the tiles. One of:

  • 出力をスキップ

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Source coordinate reference system

オプション

SOURCE_CRS

[crs]

デフォルト: なし

Resampling method

RESAMPLING

[列挙型]

デフォルト: 0

The resampling algorithm to be used Options:

  • 0 --- Nearest Neighbour (nearest)

  • 1 --- Bilinear (bilinear)

  • 2 --- Cubic (cubic)

  • 3 --- Cubic Spline (cubicspline)

  • 4 --- Lanczos Windowed Sinc (lanczos)

Column delimiter used in the CSV file

オプション

DELIMITER

[文字列]

Default: ';'

Delimiter to use in the CSV file containing the tile(s) georeferencing information

Additional creation options

オプション

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 (|).

Additional command-line parameters

オプション

EXTRA

[文字列]

デフォルト: ''

Add extra GDAL command line options

出力のデータ型

DATA_TYPE

[列挙型]

デフォルト: 5

Defines the format of the output raster file. Options:

  • 0 --- Byte (Eight bit unsigned integer (quint8))

  • 1 --- Int16 (Sixteen bit signed integer (qint16))

  • 2 --- UInt16 (Sixteen bit unsigned integer (quint16))

  • 3 --- UInt32 (Thirty two bit unsigned integer (quint32))

  • 4 --- Int32 (Thirty two bit signed integer (qint32))

  • 5 --- Float32 (Thirty two bit floating point (float))

  • 6 --- Float64 (Sixty four bit floating point (double))

  • 7 --- CInt16 (Complex Int16)

  • 8 --- CInt32 (Complex Int32)

  • 9 --- CFloat32 (Complex Float32)

  • 10 --- CFloat64 (Complex Float64)

Available options depend on the GDAL version built with QGIS (see Help ► About menu)

Build only the pyramids

ONLY_PYRAMIDS

[ブール値]

デフォルト: False

Use separate directory for each tile row

DIR_FOR_ROW

[ブール値]

デフォルト: False

出力

ラベル

名前

タイプ

説明

出力フォルダ

OUTPUT

[フォルダ]

The output folder for the tiles.

CSV file containing the tile(s) georeferencing information

OUTPUT_CSV

[ファイル]

The CSV file with georeferencing information for the tiles.

Python コード

Algorithm ID: gdal:retile

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.9. Tile index

各入力ラスタファイル、ファイル名を含む属性、およびラスタの外形のポリゴンジオメトリのレコードを持つベクタレイヤを作成します。この出力は、ラスタタイルインデックスとしてMapServerと共に使用するのに適しています。

This algorithm is derived from the GDAL Tile Index utility.

Default menu: Raster ► Miscellaneous

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

Input files

LAYERS

[ラスタ] [リスト]

The input raster files. Can be multiple files.

Field name to hold the file path to the indexed rasters

PATH_FIELD_NAME Optional

[文字列]

Default: 'location'

The output field name to hold the file path/location to the indexed rasters.

Store absolute path to the indexed rasters

ABSOLUTE_PATH

[ブール値]

デフォルト: False

Set whether the absolute path to the raster files is stored in the tile index file. By default the raster filenames will be put in the file exactly as they are specified in the command.

Skip files with different projection reference

PROJ_DIFFERENCE

[ブール値]

デフォルト: False

Only files with same projection as files already inserted in the tile index will be inserted. Default does not check projection and accepts all inputs.

Tile index

OUTPUT

[ベクタ:ポリゴン]

デフォルト: [一時ファイルに保存]

Specify the polygon vector layer to write the index to. One of:

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Transform geometries to the given CRS

オプション

TARGET_CRS

[crs]

Geometries of input files will be transformed to the specified target coordinate reference system. Default creates simple rectangular polygons in the same coordinate reference system as the input rasters.

The name of the field to store the SRS of each tile

オプション

CRS_FIELD_NAME

[文字列]

The name of the field to store the SRS of each tile

The format in which the CRS of each tile must be written

CRS_FORMAT

[列挙型]

デフォルト: 0

Format for the CRS. One of:

  • 0 -- Auto (AUTO)

  • 1 -- Well-known text (WKT)

  • 2 -- EPSG (EPSG)

  • 3 -- Proj.4 (PROJ)

出力

ラベル

名前

タイプ

説明

Tile index

OUTPUT

[ベクタ:ポリゴン]

The polygon vector layer with the tile index.

Python コード

Algorithm ID: gdal:tileindex

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

27.2.4.10. Viewshed

Calculates a viewshed raster from an input raster DEM using method defined in Wang2000 for a user defined point.

パラメーター

基本パラメータ

ラベル

名前

タイプ

説明

入力レイヤ

INPUT

[ラスタ]

Input elevation raster layer

バンド番号

BAND

[ラスタのバンド]

デフォルト: 1

The number of the band to use as elevation

Observer location

OBSERVER

[ポイント]

The location of the observer

Observer height

OBSERVER_HEIGHT

[数値]

デフォルト: 1.0

The altitude of the observer, in the DEM units

Target height

TARGET_HEIGHT

[数値]

デフォルト: 1.0

The altitude of the target element, in the DEM units

Maximum distance from observer to compute visibility

MAX_DISTANCE

[数値]

デフォルト: 100.0

Maximum distance from observer to compute visibility, in the DEM units

出力

OUTPUT

[ラスタ]

デフォルト: [一時ファイルに保存]

Output raster layer. One of:

  • 一時ファイルに保存

  • ファイルに保存...

詳細パラメータ

ラベル

名前

タイプ

説明

Additional creation options

オプション

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 (|).

Additional command-line parameters

EXTRA

[文字列]

デフォルト: なし

Add extra GDAL command line options

出力

ラベル

名前

タイプ

説明

出力

OUTPUT

[ラスタ]

The raster layer displaying the viewshed.

Python コード

Algorithm ID: gdal:viewshed

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。