.

GDAL miscellaneous

Construir ráster virtual

Descripción

Builds a VRT (Virtual Dataset) that is a mosaic of the list of input GDAL-supported rasters. With a mosaic you can merge several raster files. The algorithm is derived from the GDAL buildvrt utility .

Parametros

Input layers [multipleinput: rasters]
GDAL-supported raster layers.
“Resolución” [selección]

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

Opciones:

  • 0 — average
  • 1 — highest
  • 2 — lowest

Predeterminado: 0

Layer stack [boolean]

With ‘False’ you can define that each raster file goes into a separated stacked band in the VRT band.

Por defecto: True

Allow projection difference [boolean]

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

Predeterminado: False

Salidas

Capa de salida [raster]
Output raster file.

Uso de la consola

processing.runalg('gdalogr:buildvirtualraster', input, resolution, separate, proj_difference, output)

Ver también

Merge

Descripción

Merges raster files in a simple way. Here you can use a pseudocolor table from an input raster and define the output raster type. All the images must be in the same coordinate system. The algorithm is derived from the GDAL merge utility .

Parametros

Input layers [multipleinput: rasters]
Input raster layers.
Grab pseudocolor table from first layer [boolean]

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

Predeterminado: False

Layer stack [boolean]

If ‘True’ is chosen each input file will be placed into a separate stacked band.

Predeterminado: False

Output raster type [selection]

Defines the output raster type. By default this will be ‘Float23’.

Opciones:

  • 0 — Byte
  • 1 — Int16
  • 2 — UInt16
  • 3 — UInt32
  • 4 — Int32
  • 5 — Float32
  • 6 — Float64
  • 7 — CInt16
  • 8 — CInt32
  • 9 — CFloat32
  • 10 — CFloat64

Predeterminado: 5

Salidas

Capa de salida [raster]
Output raster layer.

Uso de la consola

processing.runalg('gdalogr:merge', input, pct, separate, rtype, output)

Ver también

Construir vistas generales (pirámides)

Descripción

To speed up rendering time of raster layers overviews (pyramids) can be created. Overviews are lower resolution copies of the data which QGIS uses depending of the level of zoom. The algorithm is derived from the GDAL addo utility .

Parametros

Capa de entrada [raster]
Input raster layer.
Overview levels [string]

Defines the number of overview levels calculated by the original resolution of the input raster layer. By default 4 levels will be taken into consideration.

Default: 2 4 8 16

Remove all existing overviews [boolean]

Removes existing overviews from the raster. By default these aren’t removed.

Predeterminado: False

Resampling method [selection]

Calculates the overviews with a defined resampling method.

Opciones:

  • 0 — nearest
  • 1 — average
  • 2 — gauss
  • 3 — cubic
  • 4 — average_mp
  • 5 — average_magphase
  • 6 — mode

Predeterminado: 0

Overview format [selection]

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

Opciones:

  • 0 — Internal (if possible)
  • 1 — External (GTiff .ovr)
  • 2 — External (ERDAS Imagine .aux)

Predeterminado: 0

Salidas

Capa de salida [raster]
Output raster layer with overviews.

Uso de la consola

processing.runalg('gdalogr:overviews', input, levels, clean, resampling_method, format)

Ver también

Información

Descripción

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

Parametros

Capa de entrada [raster]
Raster layer in input
Suprimir información GCP [boolean]

Suppress 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.

Predeterminado: False

Suprimir información de metadatos [boolean]

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

Predeterminado: False

Salidas

Información de capa [html]
Raster information in output

Uso de la consola

processing.runalg('gdalorg:rasterinfo', input, nogcp, nometadata, output)

Ver también

GDAL info

Índice de teselas

Descripción

This tool builds a shapefile with a record for each input raster file, an attribute containing the filename, and a polygon geometry outlining the raster. This output is suitable for use with MapServer as a raster tileindex.

Parametros

Input layers [multipleinput: rasters]
The input raster files. Can be multiple files.
Tile index field [string]

Opcional

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

Default: location

Skip files with different projection reference [boolean]

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.

Predeterminado: False

Salidas

Capa de salida [vector]
The name of the output file to create/append to. The default shapefile will be created if it doesn’t already exist, otherwise it will append to the existing file.

Uso de la consola

processing.runalg('gdalogr:tileindex', input, field_name, proj_difference, output)

Ver también