Outdated version of the documentation. Find the latest one here.

Add field to attributes table

Description

<put algortithm description here>

Parameters

Input layer [vector: any]
<put parameter description here>
Field name [string]

<put parameter description here>

Default: (not set)

Field type [selection]

<put parameter description here>

Options:

  • 0 — Integer
  • 1 — Float
  • 2 — String

Default: 0

Field length [number]

<put parameter description here>

Default: 10

Field precision [number]

<put parameter description here>

Default: 0

Outputs

Output layer [vector]
<put output description here>

Console usage

processing.runalg('qgis:addfieldtoattributestable', input_layer, field_name, field_type, field_length, field_precision, output_layer)

See also