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

` `

Vector table

Add autoincremental field

Описание

<put algorithm description here>

Параметри

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

Изходни резултати

Output layer [vector]
<put output description here>

Console usage

processing.runalg('qgis:addautoincrementalfield', input, output)

See also

Add field to attributes table

Описание

<put algorithm description here>

Параметри

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

Изходни резултати

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

Advanced Python field calculator

Описание

<put algorithm description here>

Параметри

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

<put parameter description here>

Default: NewField

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

Global expression [string]

Optional.

<put parameter description here>

Default: (not set)

Formula [string]

<put parameter description here>

Default: value =

Изходни резултати

Output layer [vector]
<put output description here>

Console usage

processing.runalg('qgis:advancedpythonfieldcalculator', input_layer, field_name, field_type, field_length, field_precision, global, formula, output_layer)

See also

Basic statistics for numeric fields

Описание

<put algorithm description here>

Параметри

Input vector layer [vector: any]
<put parameter description here>
Field to calculate statistics on [tablefield: numeric]
<put parameter description here>

Изходни резултати

Statistics for numeric field [html]
<put output description here>
Coefficient of Variation [number]
<put output description here>
Minimum value [number]
<put output description here>
Maximum value [number]
<put output description here>
Sum [number]
<put output description here>
Mean value [number]
<put output description here>
Count [number]
<put output description here>
Range [number]
<put output description here>
Median [number]
<put output description here>
Number of unique values [number]
<put output description here>
Standard deviation [number]
<put output description here>

Console usage

processing.runalg('qgis:basicstatisticsfornumericfields', input_layer, field_name, output_html_file)

See also

Basic statistics for text fields

Описание

<put algorithm description here>

Параметри

Input vector layer [vector: any]
<put parameter description here>
Field to calculate statistics on [tablefield: string]
<put parameter description here>

Изходни резултати

Statistics for text field [html]
<put output description here>
Minimum length [number]
<put output description here>
Maximum length [number]
<put output description here>
Mean length [number]
<put output description here>
Count [number]
<put output description here>
Number of empty values [number]
<put output description here>
Number of non-empty values [number]
<put output description here>
Number of unique values [number]
<put output description here>

Console usage

processing.runalg('qgis:basicstatisticsfortextfields', input_layer, field_name, output_html_file)

See also

Create equivalent numerical field

Описание

<put algorithm description here>

Параметри

Input layer [vector: any]
<put parameter description here>
Class field [tablefield: any]
<put parameter description here>

Изходни резултати

Output layer [vector]
<put output description here>

Console usage

processing.runalg('qgis:createequivalentnumericalfield', input, field, output)

See also

Delete column

Описание

<put algorithm description here>

Параметри

Input layer [vector: any]
<put parameter description here>
Field to delete [tablefield: any]
<put parameter description here>

Изходни резултати

Output [vector]
<put output description here>

Console usage

processing.runalg('qgis:deletecolumn', input, column, output)

See also

Извеждане/добавяне на колони на геометрия

Описание

<put algorithm description here>

Параметри

Input layer [vector: any]
<put parameter description here>
Calculate using [selection]

<put parameter description here>

Options:

  • 0 — Layer CRS
  • 1 — Project CRS
  • 2 — Ellipsoidal

Default: 0

Изходни резултати

Output layer [vector]
<put output description here>

Console usage

processing.runalg('qgis:exportaddgeometrycolumns', input, calc_method, output)

See also

Field calculator

Описание

<put algorithm description here>

Параметри

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

<put parameter description here>

Default: (not set)

Field type [selection]

<put parameter description here>

Options:

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

Default: 0

Field length [number]

<put parameter description here>

Default: 10

Field precision [number]

<put parameter description here>

Default: 3

Create new field [boolean]

<put parameter description here>

Default: True

Formula [string]

<put parameter description here>

Default: (not set)

Изходни резултати

Output layer [vector]
<put output description here>

Console usage

processing.runalg('qgis:fieldcalculator', input_layer, field_name, field_type, field_length, field_precision, new_field, formula, output_layer)

See also

Извеждане на списък с уникалните стойности

Описание

Lists unique values of an attribute table field and counts their number.

Параметри

Input layer [vector: any]
Layer to analyze.
Target field [tablefield: any]
Field to analyze.

Изходни резултати

Unique values [html]
Analysis results in HTML format.
Total unique values [number]
Total number of unique values in given field.
Unique values [string]
List of all unique values in given field.

Console usage

processing.runalg('qgis:listuniquevalues', input_layer, field_name, output)

See also

Number of unique values in classes

Описание

<put algorithm description here>

Параметри

input [vector: any]
<put parameter description here>
class field [tablefield: any]
<put parameter description here>
value field [tablefield: any]
<put parameter description here>

Изходни резултати

output [vector]
<put output description here>

Console usage

processing.runalg('qgis:numberofuniquevaluesinclasses', input, class_field, value_field, output)

See also

Refactor fields

Описание

Refactor layer fields:

  • Change field names and types.
  • Add and remove fields.
  • Reorder fields.
  • Calculate new fields based on expressions.
  • Load field list from another layer.

Параметри

Input layer [vector: any]
Source layer.
Fields mapping [fieldsmapping]
Output fields definitions

Изходни резултати

Output layer [vector]
Destination layer

Console usage

processing.runalg("qgis:refactorfields",
                  input,
                  [{'name': output_field_name,
                    'type': output_field_type,
                    'length': output_field_length,
                    'precision': output_field_precision,
                    'expression': expression_based_on_input_layer
                  }],
                  output)

See also

Statistics by categories

Описание

<put algorithm description here>

Параметри

Input vector layer [vector: any]
<put parameter description here>
Field to calculate statistics on [tablefield: numeric]
<put parameter description here>
Field with categories [tablefield: any]
<put parameter description here>

Изходни резултати

Statistics [table]
<put output description here>

Console usage

processing.runalg('qgis:statisticsbycategories', input_layer, values_field_name, categories_field_name, output)

See also

Text to float

Описание

<put algorithm description here>

Параметри

Input Layer [vector: any]
<put parameter description here>
Text attribute to convert to float [tablefield: string]
<put parameter description here>

Изходни резултати

Output [vector]
<put output description here>

Console usage

processing.runalg('qgis:texttofloat', input, field, output)

See also