.

GDAL conversion

gdal2xyz

Beschreibung

<put algorithm description here>

Parameter

Input layer [raster]

<geben Sie hier die Parameterbeschreibung ein>

Band number [number]

<geben Sie hier die Parameterbeschreibung ein>

Default: 1

Ausgaben

Output file [table]

<fügen Sie hier die Übersetzung der Ausgabe ein>

Verwendung der Konsole

processing.runalg('gdalogr:gdal2xyz', input, band, output)

Siehe auch

PCT to RGB

Beschreibung

Convert an 8bit paletted image to 24bit RGB

This utility will convert a pseudocolor band on the input file into an output RGB file of the desired format.

Parameter

Input layer [raster]
Input 8bit raster image
Band to convert [selection]

Band to convert to RGB

Options:

  • 0 — 1
  • 1 — 2
  • 2 — 3
  • 3 — 4
  • 4 — 5
  • 5 — 6
  • 6 — 7
  • 7 — 8
  • 8 — 9
  • 9 — 10
  • 10 — 11
  • 11 — 12
  • 12 — 13
  • 13 — 14
  • 14 — 15
  • 15 — 16
  • 16 — 17
  • 17 — 18
  • 18 — 19
  • 19 — 20
  • 20 — 21
  • 21 — 22
  • 22 — 23
  • 23 — 24
  • 24 — 25

Default: 0

Ausgaben

Output layer [raster]
24bit RGB raster image

Verwendung der Konsole

processing.runalg('gdalogr:pcttorgb', input, nband, output)

Polygonize (raster to vector)

Beschreibung

Creates vector polygons for all connected regions of pixels in the raster sharing a common pixel value. Each polygon is created with an attribute indicating the pixel value of that polygon. The algorithm is derived from the GDAL polygonize utility .

Parameter

Input layer [raster]
Input raster layer.
Output field name [string]

Defines the field name in which the attributes of the connected regions are entered. If no field name is defined the name will be ‘DN’.

Default: DN

Ausgaben

Output layer [vector]
Output vector layer. Default format is *.shp .

Verwendung der Konsole

processing.runalg('gdalogr:polygonize', input, field, output)

Siehe auch

Rasterize (vector to raster)

Beschreibung

Converts vector geometries (points, lines and polygons) into a raster image. The algorithm is derived from the GDAL rasterize utility .

Parameter

Input layer [vector: any]
Input vector layer with point, line or polygon geometries.
Attribute field [tablefield: any]
Defines the attribute field from which the attributes for the pixels should be chosen.
Write values inside an existing raster layer(*) [boolean]

If activated writes the results into an existing raster layer.

Default: False

Set output raster size (ignored if above option is checked) [selection]

If the above option is not checked either the output size is in pixels (0) or the output resolution is in map units per pixel (1).

Options:

  • 0 — Output size in pixels
  • 1 — Output resolution in map units per pixel

Default: 1

Horizontal [number]

Sets the horizontal resolution of the output raster.

Vorgabe: 100.0

Vertical [number]

Sets the vertical resolution of the output raster.

Vorgabe: 100.0

Raster type [selection]

Defines the type of the resulting raster image.

Options:

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

Default: 0

Ausgaben

Output layer: mandatory to choose an existing raster layer if the (*) option is selected [raster]
Output raster layer. Give in here the name of the raster layer in which the results should be written (if this option is used).

Verwendung der Konsole

processing.runalg('gdalogr:rasterize', input, field, writeover, dimensions, width, height, rtype, output)

Siehe auch

RGB to PCT

Beschreibung

Converts a 24bit RGB image into a 8bit paletted. Computes an optimal pseudo-color table for the given RGB-image using a median cut algorithm on a downsampled RGB histogram. Then it converts the image into a pseudo-colored image using the color table. This conversion utilizes Floyd-Steinberg dithering (error diffusion) to maximize output image visual quality. If you want to classify a raster map and want to reduce the number of classes it can be helpful to downsample your image with this algorithm before. The algorithm is derived from the GDAL rgb2pct utility .

Parameter

Input layer [raster]
Input RGB image raster.
Number of colors [number]

The number of colors the resulting image will contain. A value from 2-256 is possible.

Default: 2

Ausgaben

Output layer [raster]
8-bit output raster.

Verwendung der Konsole

processing.runalg('gdalogr:rgbtopct', input, ncolors, output)

Siehe auch

Translate (convert format)

Beschreibung

<put algorithm description here>

Parameter

Input layer [raster]

<geben Sie hier die Parameterbeschreibung ein>

Set the size of the output file (In pixels or %) [number]

<geben Sie hier die Parameterbeschreibung ein>

Default: 100

Output size is a percentage of input size [boolean]

<geben Sie hier die Parameterbeschreibung ein>

Default: True

Nodata value, leave as none to take the nodata value from input [string]

<geben Sie hier die Parameterbeschreibung ein>

Default: none

Expand [selection]

<geben Sie hier die Parameterbeschreibung ein>

Options:

  • 0 — none
  • 1 — gray
  • 2 — rgb
  • 3 — rgba

Default: 0

Output projection for output file [leave blank to use input projection] [crs]

<geben Sie hier die Parameterbeschreibung ein>

Default: None

Subset based on georeferenced coordinates [extent]

<geben Sie hier die Parameterbeschreibung ein>

Default: 0,1,0,1

Copy all subdatasets of this file to individual output files [boolean]

<geben Sie hier die Parameterbeschreibung ein>

Default: False

Additional creation parameters [string]

Optional.

<geben Sie hier die Parameterbeschreibung ein>

Default: (not set)

Output raster type [selection]

<geben Sie hier die Parameterbeschreibung ein>

Options:

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

Default: 5

Ausgaben

Output layer [raster]

<fügen Sie hier die Übersetzung der Ausgabe ein>

Verwendung der Konsole

processing.runalg('gdalogr:translate', input, outsize, outsize_perc, no_data, expand, srs, projwin, sds, extra, rtype, output)

Siehe auch