Vector conversion

Convert format

Converts any OGR-supported vector layer into another OGR-supported format.

This algorithm is derived from the ogr2ogr utility .

Parameters

Label

Name

Type

Description

Input layer

INPUT

[vector: any]

Input vector layer

Additional creation options

(optional)

OPTIONS

[string]

Default: ‘’ (no additional options)

Additional GDAL creation options.

Converted

OUTPUT

[vector: any]

Specification of the output vector layer. One of:

  • Save to a Temporary File

  • Save to File…

The file encoding can also be changed here.

For Save to File, the output format has to be specified. All GDAL vector formats are supported. For Save to a Temporary File the QGIS default vector format will be used.

Outputs

Label

Name

Type

Description

Converted

OUTPUT

[vector: any]

The output vector layer

Rasterize (vector to raster)

Converts vector geometries (points, lines and polygons) into a raster image.

This algorithm is derived from the GDAL rasterize utility .

Default menu: Raster ‣ Conversion

Parameters

Label

Name

Type

Description

Input layer

INPUT

[vector: any]

Input vector layer

Field to use for a burn-in value

Optional

FIELD

[tablefield: numeric]

Defines the attribute field from which the attributes for the pixels should be chosen

A fixed value to burn

Optional

BURN

[number]

Default: 0.0

A fixed value to burn into a band for all features.

Output raster size units

UNITS

[enumeration]

Default: 0

Units to use when defining the output raster size/resolution. One of:

  • 0 — Pixels

  • 1 — Georeferenced units

Width/Horizontal resolution

WIDTH

[number]

Default: 0.0

Sets the width (if size units is “Pixels”) or horizontal resolution (if size units is “Georeferenced units”) of the output raster. Minimum value: 0.0.

Height/Vertical resolution

HEIGHT

[number]

Default: 0.0

Sets the height (if size units is “Pixels”) or vertical resolution (if size units is “Georeferenced units”) of the output raster.

Output extent

EXTENT

[extent]

Extent of the output raster layer. If the extent is not specified, the minimum extent that covers the selected reference layer(s) will be used.

Assign a specified nodata value to output bands

Optional

NODATA

[number]

Default: 0.0

Assigns a specified nodata value to output bands

Additional creation options

Optional

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

Output data type

DATA_TYPE

[enumeration]

Default: 5

Defines the format of the output raster file.

Options:

  • 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

Pre-initialize the output image with value

Optional

INIT

[number]

Pre-initializes the output image bands with this value. Not marked as the nodata value in the output file. The same value is used in all the bands.

Invert rasterization

INVERT

[boolean]

Default: False

Burns the fixed burn value, or the burn value associated with the first feature into all parts of the image not inside the provided polygon.

Rasterized

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 For Save to File, the output format has to be specified. All GDAL raster formats are supported. For Save to a Temporary File the QGIS default raster format will be used.

Outputs

Label

Name

Type

Description

Rasterized

OUTPUT

[raster]

Output raster layer