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

` `

Vector table

Add autoincremental field

Tanım

<put algorithm description here>

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Add field to attributes table

Tanım

<put algorithm description here>

Parametreler

Giriş katmanı [vektör: tüm]
<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

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Advanced Python field calculator

Tanım

<put algorithm description here>

Parametreler

Giriş katmanı [vektör: tüm]
<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 =

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Basic statistics for numeric fields

Tanım

<put algorithm description here>

Parametreler

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

Çıkışlar

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>

Konsol kullanımı

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

Ayrıca bakınız

Basic statistics for text fields

Tanım

<put algorithm description here>

Parametreler

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

Çıkışlar

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>

Konsol kullanımı

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

Ayrıca bakınız

Create equivalent numerical field

Tanım

<put algorithm description here>

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
Class field [tablefield: any]
<put parameter description here>

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Delete column

Tanım

<put algorithm description here>

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
Field to delete [tablefield: any]
<put parameter description here>

Çıkışlar

Output [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Export/Add geometry columns

Tanım

<put algorithm description here>

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
Calculate using [selection]

<put parameter description here>

Options:

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

Default: 0

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Field calculator

Tanım

<put algorithm description here>

Parametreler

Giriş katmanı [vektör: tüm]
<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)

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

List unique values

Tanım

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

Parametreler

Giriş katmanı [vektör: tüm]
Layer to analyze.
Target field [tablefield: any]
Field to analyze.

Çıkışlar

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.

Konsol kullanımı

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

Ayrıca bakınız

Number of unique values in classes

Tanım

<put algorithm description here>

Parametreler

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

Çıkışlar

output [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Yeniden katsayılandırma alanları

Tanım

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.

Parametreler

Giriş katmanı [vektör: tüm]
Source layer.
Fields mapping [fieldsmapping]
Output fields definitions

Çıkışlar

Output layer [vector]
Destination layer

Konsol kullanımı

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)

Ayrıca bakınız

Kategorilere göre istatistikler

Tanım

<put algorithm description here>

Parametreler

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>

Çıkışlar

Statistics [table]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız

Text to float

Tanım

<put algorithm description here>

Parametreler

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

Çıkışlar

Output [vector]
<put output description here>

Konsol kullanımı

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

Ayrıca bakınız