24.2.5. Raster projections

24.2.5.1. Assign projection

Applies a coordinate system to a raster dataset.

This algorithm is derived from the GDAL edit utility.

Default menu: Raster ► Projections

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT_LAYER

[raster]

Camada raster de entrada

Desired CRS

SRC

[crs]

The projection (CRS) of the output layer

Saídas

Etiqueta

Nome

Tipo

Descrição

Layer with projection

SAÍDA

[raster]

The output raster layer (with the new projection information)

Python code

Algorithm ID: gdal:assignprojection

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

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

24.2.5.2. Extract projection

Extracts the projection of a raster file and writes it into a world file with extension .wld.

This algorithm is derived from the GDAL srsinfo utility.

Default menu: Raster ► Projections

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Input file

INPUT_LAYER

[raster]

Input raster The raster layer has to be file based, as the algorithm uses the path to the raster file as the location of the generated .wld file. Using a non-file raster layer will lead to an error.

Create also .prj file

PRJ_FILE_CREATE

[boolean]

Padrão: Falso

If this is activated a .prj file containing the projection information is also created.

Saídas

Etiqueta

Nome

Tipo

Descrição

World file

WORLD_FILE

[file]

Text file with extension .wld containing transformation parameters for the raster file.

ESRI Shapefile prj file

PRJ_FILE

[file]

Text file with .prj extension that describes the CRS. Will be None if Create also .prj file is False.

Python code

Algorithm ID: gdal:extractprojection

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

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

24.2.5.3. Warp (reproject)

Reprojects a raster layer into another Coordinate Reference System (CRS). The output file resolution and the resampling method can be chosen.

This algorithm is derived from the GDAL warp utility.

Default menu: Raster ► Projections

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[raster]

Input raster layer to reproject

SRC de Origem

Opcional

SRC_ORIGEM

[crs]

Defines the CRS of the input raster layer

SRC Alvo

Opcional

SRC_ALVO

[crs]

Padrão: EPSG:4326

O SRC da camada de saída

Resampling method to use

RESAMPLING

[enumeration]

Padrão: 0

Pixel value resampling method to use. Options:

  • 0 — Nearest neighbour

  • 1 — Bilinear

  • 2 — Cubic

  • 3 — Cubic spline

  • 4 — Lanczos windowed sinc

  • 5 — Average

  • 6 — Mode

  • 7 — Maximum

  • 8 — Minimum

  • 9 — Median

  • 10 — First quartile

  • 11 — Third quartile

Nodata value for output bands

Opcional

NODATA

[number]

Padrão: Nenhum

Sets nodata value for output bands. If not provided, then nodata values will be copied from the source dataset.

Output file resolution in target georeferenced units

Opcional

TARGET_RESOLUTION

[number]

Padrão: Nenhum

Defines the output file resolution of reprojection result

Opções de criação adicionais

Opcional

OPÇÕES

[string]

Padrão: ‘’

Para adicionar uma ou mais opções de criação que controlam o raster a ser criado (cores, tamanho do bloco, compactação de arquivos …). Por conveniência, você pode contar com perfis predefinidos (veja seção de opções do driver GDAL).

For Batch Process: separate multiple options with a pipe character (|).

Tipo de dados de saída

DATA_TYPE

[enumeration]

Padrão: 0

Define o formato do arquivo de raster saída.

Opções:

  • 0 — Use input layer data type

  • 1 — Byte

  • 2 — Int16

  • 3 — UInt16

  • 4 — UInt32

  • 5 — Int32

  • 6 — Float32

  • 7 — Float64

  • 8 — CInt16

  • 9 — CInt32

  • 10 — CFloat32

  • 11 — CFloat64

Georeferenced extents of output file to be created

Opcional

TARGET_EXTENT

[extent]

Sets the georeferenced extent of the output file to be created (in the Target CRS by default. In the CRS of the target raster extent, if specified).

CRS of the target raster extent

Opcional

TARGET_EXTENT_CRS

[crs]

Specifies the CRS in which to interpret the coordinates given for the extent of the output file. This must not be confused with the target CRS of the output dataset. It is instead a convenience e.g. when knowing the output coordinates in a geodetic long/lat CRS, but wanting a result in a projected coordinate system.

Use multithreaded warping implementation

MULTITHREADING

[boolean]

Padrão: Falso

Two threads will be used to process chunks of the image and perform input/output operations simultaneously. Note that the computation itself is not multithreaded.

Parâmetros adicionais da linha de comando

Opcional

EXTRA

[string]

Padrão: Nenhum

Add extra GDAL command line options.

Reprojetado

SAÍDA

[raster]

Default: ‘[Save to temporary file]’

Especificação da camada raster de saída. Um de:

  • Salvar como Arquivo Temporário

  • Salvar para Arquivo…

A codificação do arquivo também pode ser alterada aqui.

Saídas

Etiqueta

Nome

Tipo

Descrição

Reprojetado

SAÍDA

[raster]

Default: [Save to temporary file]

Reprojected output raster layer

Python code

Algorithm ID: gdal:warpreproject

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

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.