Miscelânea de Raster

Construir Visão geral (Pirâmides)

Para acelerar o tempo de renderização de visões de camadas as pirâmides podem ser criadas. As visões gerais são cópias de resolução mais baixa dos dados que o QGIS usa dependendo do nível de zoom.

Este algoritmo é derivado do utilitário GDAL addo <https://www.gdal.org/gdaladdo.html> _.

`` Menu Padrão``:: Seleção de menu: `Raster -> Miscelânia

Parâmetros

Label

Nome

Type

Descrição

Input layer

INPUT

[raster]

Input raster layer

Overview levels

LEVELS

[string]

Default: ‘2 4 8 16’

Define o número de níveis de visão geral calculados pela resolução original da camada de rastreio de entrada. Por padrão, 4 níveis serão levados em consideração.

Remove all existing overviews

CLEAN

[boolean]

Default: False

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

Resampling method

Opcional

RESAMPLING

[enumeration]

Default: 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

Opcional

FORMAT

[enumeration]

Default: 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)

Saídas

Label

Nome

Type

Descrição

Pyramidized

OUTPUT

[raster]

Output raster layer with overviews

Construir raster virtual

Cria um VRT (Coleção Virtual) que é um mosaico da lista de rasteres suportados pelo GDAL de entrada. Com um mosaico você pode mesclar vários arquivos raster.

This algorithm is derived from the GDAL buildvrt utility .

`` Menu Padrão``:: Seleção de menu: `Raster -> Miscelânia

Parâmetros

Label

Nome

Type

Descrição

Input layers

INPUT

[raster] [list]

Importar raster suportado GDAL

Resolution

RESOLUTION

[enumeration]

Default: 0

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

Opções:

  • 0 — Average (average)

  • 1 — Highest (highest)

  • 2 — Lowest (lowest)

Place each input file into a separate band

SEPARATE

[boolean]

Default: True

Com ‘Verdadeiro’ você pode definir que cada arquivo de raster vai para uma banda separada na faixa da banda VRT.

Allow projection difference

PROJ_DIFFERENCE

[boolean]

Default: False

Permite que as bandas de saída tenham diferentes projeções derivadas da projeção das camadas de varredura de entrada.

Add alpha mask band to VRT when source raster has none

ADD_ALPHA

[boolean]

Default: False

Adicionar canal de máscara alfa para VTR quando não houver nenhum raster

Override projection for the output file

(optional)

ASSIGN_CRS

[crs]

Default: None

Substituir a projeção do arquivo de saída. Sem reprojeção estar pronta.

Resampling algorithm

RESAMPLING

[enumeration]

Default: 0

The resampling algorithm to be used

Opções:

  • 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)

Opcional

SRC_NODATA

[string]

Default: None

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

Additional command-line parameters

EXTRA

[string]

Default: None

Add extra GDAL command line options

Virtual

OUTPUT

[raster]

Default: [Save to temporary file]

Specification of the output raster layer. One of:

  • Save to a Temporary File

  • Save to File…

The file encoding can also be changed here.

Saídas

Label

Nome

Type

Descrição

Virtual

OUTPUT

[raster]

Output raster layer

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.

Parâmetros

Label

Nome

Type

Descrição

Input layer

INPUT

[raster]

GDAL-supported raster layer.

Tile cutting profile

PROFILE

[enumeration]

Default: 0

One of:

  • 0 — Mercator (mercator)

  • 1 — Geodetic (geodetic)

  • 2 — Raster (raster)

Zoom levels to render

Opcional

ZOOM

[string]

Default: ‘’

Web viewer to generate

VIEWER

[enumerate]

Default: 0

One of:

  • 0 — All (all)

  • 1 — GoogleMaps (google)

  • 2 — OpenLayers (openlayers)

  • 3 — Leaflet (leaflet)

  • 4 — None (none)

Title of the map

Opcional

TITLE

[string]

Default: ‘’

Copyright of the map

COPYRIGHT

[string]

Default: ‘’

Resampling method

RESAMPLING

[enumeration]

Default: 0

The resampling algorithm to be used

Opções:

  • 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

Opcional

SOURCE_CRS

[crs]

Default: None

Transparency value to assign to the input data

Opcional

NODATA

[number]

Default: 0.0

URL address where the generated tiles are going to be published

Opcional

URL

[string]

Default: ‘’

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

Opcional

GOOGLE_KEY

[string]

Default: ‘’

Your Google maps API key.

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

Opcional

BING_KEY

[string]

Default: ‘’

Your Bing maps API key.

Generate only missing files

RESUME

[boolean]

Default: False

Generate KML for Google Earth

KML

[boolean]

Default: False

Avoid automatic generation of KML files for EPSG:4326

NO_KML

[boolean]

Default: False

Output directory

OUTPUT

[folder]

Default: [Save to temporary file]

Specify the output folder for the tiles.

Saídas

Label

Nome

Type

Descrição

Output directory

OUTPUT

[folder]

The output folder (for the tiles)

Mesclar

Mescla arquivos raster de maneira simples. Aqui você pode usar uma tabela pseudocor de uma entrada raster e definir o tipo de rasterização de saída. Todas as imagens devem estar no mesmo sistema de coordenadas.

Este algoritmo é derivado do GDAL grade utilitário <https://www.gdal.org/gdal_grid.html>`_ .

`` Menu Padrão``:: Seleção de menu: `Raster -> Miscelânia

Parâmetros

Label

Nome

Type

Descrição

Input layers

INPUT

[raster] [list]

Input raster layers

Grab pseudocolor table from first layer

PCT

[boolean]

Default: False

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

Place each input file into a separate band

SEPARATE

[boolean]

Default: False

Output data type

DATA_TYPE

[enumeration]

Default: 5

Defines the format of the output raster file.

Opções:

  • 0 — Byte

  • 1 — Int16

  • 2 — UInt16

  • 3 — UInt32

  • 4 — Int32

  • 5 — Float32

  • 6 — Float64

  • 7 — CInt16

  • 8 — CInt32

  • 9 — CFloat32

  • 10 — CFloat64

Input pixel value to treat as “nodata”

Opcional

NODATA_INPUT

[number]

Default: None

Ignores pixels from files being merged in with this pixel value

Assign specified “nodata” value to output

Opcional

NODATA_OUTPUT

[number]

Default: None

Fixa um valor de “sem dado” as bandas de saída.

Additional creation options

Opcional

OPTIONS

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

Merged

OUTPUT

[raster]

Default: [Save to temporary file]

Specification of the output raster layer. One of:

  • Save to a Temporary File

  • Save to File…

The file encoding can also be changed here.

Saídas

Label

Nome

Type

Descrição

Merged

OUTPUT

[raster]

Output raster layer

Raster calculator

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.

Ver também

Raster calculator

Parâmetros

Label

Nome

Type

Descrição

Input layer A

INPUT_A

[raster]

First input raster layer (mandatory)

Number of raster band for A

BAND_A

[raster band]

Band for input layer A (mandatory)

Input layer B

Opcional

INPUT_B

[raster]

Default: None

Second input raster layer

Number of raster band for B

Opcional

BAND_B

[raster band]

Band for input layer B

Input layer C

Opcional

INPUT_C

[raster]

Default: None

Third input raster layer

Number of raster band for C

Opcional

BAND_C

[raster band]

Band for input layer C

Input layer D

Opcional

INPUT_D

[raster]

Default: None

Fourth input raster layer

Number of raster band for D

Opcional

BAND_D

[raster band]

Band for input layer D

Input layer E

Opcional

INPUT_E

[raster]

Default: None

Fifth input raster layer

Number of raster band for E

Opcional

BAND_E

[raster band]

Band for input layer E

Input layer F

Opcional

INPUT_F

[raster]

Sixth input raster layer

Number of raster band for F

Opcional

BAND_F

[raster band]

Default: None

Band for input layer F

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

FORMULA

[string]

Default: ‘’

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

Opcional

NO_DATA

[number]

Default: None

Value to use for nodata

Output raster type

RTYPE

[enumeration]

Default: 5

Defines the format of the output raster file.

Opções:

  • 0 — Byte

  • 1 — Int16

  • 2 — UInt16

  • 3 — UInt32

  • 4 — Int32

  • 5 — Float32

  • 6 — Float64

Additional creation options

Opcional

OPTIONS

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

Additional command-line parameters

Opcional

EXTRA

[string]

Default: ‘’

Add extra GDAL command line options

Calculated

OUTPUT

[raster]

Default: [Save to temporary file]

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

  • Save to a Temporary File

  • Save to File…

The file encoding can also be changed here.

Saídas

Label

Nome

Type

Descrição

Calculated

OUTPUT

[raster]

Output (calculated) raster layer

Informação de raster

Este utilitário cria uma lista com várias informações sobre o conjunto de dados matricial GDAL suportado.

Este algoritmo é derivado do utilitário GDAL informações <https://www.gdal.org/gdaladdo.html> _.

`` Menu Padrão``:: Seleção de menu: `Raster -> Miscelânia

Parâmetros

Label

Nome

Type

Descrição

Input layer

INPUT

[raster]

Input raster layer

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

MIN_MAX

[boolean]

Default: 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

[boolean]

Default: False

Lê e exibe estatísticas da imagem. Força o cálculo se nenhuma estatística for armazenada em uma imagem.

Suppress GCP info

NO_GCP

[boolean]

Default: False

Suprime a impressão da lista de pontos de controle no solo. Pode ser útil para conjuntos de dados com grande quantidade de GCPs, como L1B AVHRR ou HDF4 MODIS, que contêm milhares deles.

Suppress metadata info

NO_METADATA

[boolean]

Default: False

Suprime a impressão de metadados. Alguns conjuntos de dados podem conter muitas cadeias de metadados.

Layer information

OUTPUT

[html]

Default: [Save to temporary file]

Specify the HTML file for output.

One of:

  • Save to a Temporary File

  • Save to File…

The file encoding can also be changed here.

Saídas

Label

Nome

Type

Descrição

Layer information

OUTPUT

[html]

The HTML file containing information about the input raster layer

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 .

Parâmetros

Label

Nome

Type

Descrição

Input files

INPUT

[raster] [list]

The input raster files

Tile width

TILE_SIZE_X

[number]

Default: 256

Width of the tiles in pixels (minimum 0)

Tile height

TILE_SIZE_Y

[number]

Default: 256

Height of the tiles in pixels (minimum 0)

Overlap in pixels between consecutive tiles

OVERLAP

[number]

Default: 0

Number of pyramid levels to build

LEVELS

[number]

Default: 1

Minimum: 0

Source coordinate reference system

SOURCE_CRS

[crs]

Default: None

Resampling method

RESAMPLING

[enumeration]

Default: 0

The resampling algorithm to be used

Opções:

  • 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

Opcional

DELIMITER

[string]

Default: ‘;’

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

Additional creation options

Opcional

OPTIONS

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

Additional command-line parameters

Opcional

EXTRA

[string]

Default: ‘’

Add extra GDAL command line options

Output data type

DATA_TYPE

[enumeration]

Default: 5

Defines the format of the output raster file.

Opções:

  • 0 — Byte

  • 1 — Int16

  • 2 — UInt16

  • 3 — UInt32

  • 4 — Int32

  • 5 — Float32

  • 6 — Float64

  • 7 — CInt16

  • 8 — CInt32

  • 9 — CFloat32

  • 10 — CFloat64

Build only the pyramids

ONLY_PYRAMIDS

[boolean]

Default: False

Use separate directory for each tile row

DIR_FOR_ROW

[boolean]

Default: False

Output directory

OUTPUT

[folder]

Default: [Save to temporary folder]

Specify the output folder for the tiles. One of:

  • Save to Temporary Directory

  • Save to Directory…

The file encoding can also be changed here.

CSV file containing the tile(s) georeferencing information

OUTPUT_CSV

[file]

Default: [Skip output]

One of:

  • Skip Output

  • Save to a Temporary File

  • Save to File…

The file encoding can also be changed here.

Saídas

Label

Nome

Type

Descrição

Output directory

OUTPUT

[folder]

The output folder for the tiles.

CSV file containing the tile(s) georeferencing information

OUTPUT_CSV

[file]

The CSV file with georeferencing information for the tiles.

Índice deslizante

Cria uma camada vetorial com um registro para cada arquivo de varredura de entrada, um atributo contendo o nome do arquivo e uma geometria de polígono definindo a varredura. Essa saída é adequada para uso com o MapServer como um indexador de rasterização.

Este algoritmo é derivado do utilitário GDAL informações <https://www.gdal.org/gdaladdo.html> _.

`` Menu Padrão``:: Seleção de menu: `Raster -> Miscelânia

Parâmetros

Label

Nome

Type

Descrição

Input files

LAYERS

[raster] [list]

Arquivos de rasterização de entrada. Podem ser vários arquivos.

Field name to hold the file path to the indexed rasters

PATH_FIELD_NAME Optional

[string]

Default: ‘location’

Nome do arquivo para manter o caminho do arquivo para os rasteres indexados

Store absolute path to the indexed rasters

ABSOLUTE_PATH

[boolean]

Default: False

Defina se o caminho absoluto para os arquivos raster é armazenado no arquivo de índice tile. Por padrão, os nomes dos arquivos raster serão colocados no arquivo exatamente como são especificados no comando.

Skip files with different projection reference

PROJ_DIFFERENCE

[boolean]

Default: False

Somente arquivos com a mesma projeção dos arquivos já inseridos no índice de blocos serão inseridos. O padrão não verifica a projeção e aceita todas as entradas.

Transform geometries to the given CRS

Opcional

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

Opcional

CRS_FIELD_NAME

[string]

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

[enumeration] Default: 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

[vector: polygon]

Default: [Save to temporary file]

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

  • Save to a Temporary File

  • Save to File

The file encoding can also be changed here.

Saídas

Label

Nome

Type

Descrição

Tile index

OUTPUT

[vector: polygon]

The polygon vector layer with the tile index.