Svarbu

Vertimas yra bendruomenės pastangos, prie kurių jūs galite prisijungti. Šis puslapis šiuo metu išverstas 62.37%.

24.1.26. Vektorinė lentelė

24.1.26.1. Pridėti automatiškai didinamą lauką

Prideda į vektorinį sluoksnį naują sveiko skaičiaus lauko, kuriame kiekvienam geoobjektui reikšmė imama iš sekos.

Šį lauką galima naudoti kaip sluoksnio geoobjektų unikalų ID. Naujas atributas nepridedamas į įvesties sluoksnį, o vietoje to kuriamas naujas sluoksnis.

Galima nurodyti pradinę reikšmę, nuo kurios prasideda seka. Pasirinktinai, didėjanti seka gali remtis laukų grupavimu, taipogi galima nurodyti geoobjektų rikiavimo tvarką.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

Įvesties vektorinis sluoksnis.

Lauko pavadinimas

FIELD_NAME

[string]

Numatytas: „AUTO“

Lauko su automatiškai didinama reikšme pavadinimas

Reikšmes pradėti nuo

Pasirinktinis

START

[numeric: integer]

Numatytas: 0

Parinkite pradinį didėjančios sekos skaičių

Modulio reikšmė

Pasirinktinis

MODULUS

[numeric: integer]

Numatytas: 0

Nurodžius neprivalomą modulį, reikšmės bus pradedamos iš naujo nuo START reikšmės, kai lauko reikšmė pasieks modulio reikšmę. 0 reiškia nepradėti iš naujo.

Grupuoti reikšmes pagal

Pasirinktinis

GROUP_FIELDS

[lentelės laukas: bet koks] [sąrašas]

Parinkite grupuojamą lauką(us): vietoje vieno skaičiavimo visam sluoksniui, atskiras skaitliukas apdorojamas kiekvienai reikšmei, kurią grąžina šių laukų kombinacija.

Rikiavimo išraiška

Pasirinktinis

SORT_EXPRESSION

[išraiška]

Naudoti išraišką geoobjektų rikiavimui sluoksnyje globaliai arba, jei nurodyta, pagal grupavimo laukus.

Rikiuoti didėjančiai

SORT_ASCENDING

[boolean]

Numatytas: Taip

Nurodžius rikiuoti didėjančiai, naudokite šią parinktį, kad valdytumėte rikiuotę, kuria geoobjektams priskiriamos reikšmės.

Null reikšmės rikiuotės pradžioje

SORT_NULLS_FIRST

[boolean]

Numatytas: ne

Nurodžius rikiuotės išraišką, naudokite šią parinktį, kad Null reikšmės būtų pirmos ar paskutinės.

Padidintos

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Nurodykite išvesties vektorinį sluoksnį su automatiškai didėjančiu lauku. Vienas iš:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Padidintos

OUTPUT

[toks pat, kaip įvestis]

Vektorinis sluoksnis su automatiškai didėjančiu lauku

Pythono kodas

Algoritmo ID: native:addautoincrementalfield

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.2. Add field to attributes table

Adds a new field to a vector layer.

The name and characteristics of the attribute are defined as parameters.

The new attribute is not added to the input layer but a new layer is generated instead.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

The input layer

Lauko pavadinimas

FIELD_NAME

[string]

Name of the new field

Field type

FIELD_TYPE

[sąrašas]

Numatytas: 0

Type of the new field. You can choose between:

  • 0 — Integer (32 bit)

  • 1 — Decimal (double)

  • 2 — Text (string)

  • 3 — Boolean

  • 4 — Date

  • 5 — Time

  • 6 — Date & Time

  • 7 — Binary Object (BLOB)

  • 8 — String List

  • 9 — Integer List

  • 10 — Decimal (double) List

Field length

FIELD_LENGTH

[numeric: integer]

Default: 10

Length of the field

Field precision

FIELD_PRECISION

[numeric: integer]

Numatytas: 0

Precision of the field. Useful with Float field type.

Field alias

Pasirinktinis

FIELD_ALIAS

[string]

Set a name to use as alias for the field. Not supported by all format types.

Field comment

Pasirinktinis

FIELD_COMMENT

[string]

Store a comment describing the field. Not supported by all format types.

Added

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Nurodykite išvesties vektorinį sluoksnį. Vienas iš:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Added

OUTPUT

[toks pat, kaip įvestis]

Vector layer with new field added

Pythono kodas

Algorithm ID: native:addfieldtoattributestable

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.3. Add unique value index field

Takes a vector layer and an attribute and adds a new numeric field.

Values in this field correspond to values in the specified attribute, so features with the same value for the attribute will have the same value in the new numeric field.

This creates a numeric equivalent of the specified attribute, which defines the same classes.

The new attribute is not added to the input layer but a new layer is generated instead.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

The input layer.

Class field

FIELD

[tablefield: any]

Features that have the same value for this field will get the same index.

Output field name

FIELD_NAME

[string]

Default: ‚NUM_FIELD‘

Name of the new field containing the indexes.

Layer with index field

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Vector layer with the numeric field containing indexes. One of:

  • Praleisti išvestį

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Class summary

SUMMARY_OUTPUT

[vector: table]

Numatytas: [Praleisti išvestį]

Specify the table to contain the summary of the class field mapped to the corresponding unique value. One of:

  • Praleisti išvestį

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Layer with index field

OUTPUT

[toks pat, kaip įvestis]

Vector layer with the numeric field containing indexes.

Class summary

SUMMARY_OUTPUT

[vector: table]

Table with summary of the class field mapped to the corresponding unique value.

Pythono kodas

Algorithm ID: native:adduniquevalueindexfield

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.4. Add X/Y fields to layer

Adds X and Y (or latitude/longitude) fields to a point layer. The X/Y fields can be calculated in a different CRS to the layer (e.g. creating latitude/longitude fields for a layer in a projected CRS).

checkbox Leidžia taškų geoobjektus keisti vietoje

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vector: point]

The input layer.

Coordinate system

CRS

[crs]

Default: „EPSG:4326“

Coordinate reference system to use for the generated x and y fields.

Field prefix

Pasirinktinis

PREFIX

[string]

Prefix to add to the new field names to avoid name collisions with fields in the input layer.

Added fields

OUTPUT

[vector: point]

Numatytas: [Kurti laikiną sluoksnį]

Specify the output layer. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Added fields

OUTPUT

[vector: point]

The output layer - identical to the input layer but with two new double fields, x and y.

Pythono kodas

Algorithm ID: native:addxyfields

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.5. Advanced Python field calculator

Adds a new attribute to a vector layer, with values resulting from applying an expression to each feature.

The expression is defined as a Python function.

Įspėjimas

This algorithm is a potential security risk if executed with unchecked inputs, and may result in system damage or data leaks.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

Įvesties vektorinis sluoksnis

Result field name

FIELD_NAME

[string]

Default: ‚NewField‘

Name of the new field

Field type

FIELD_TYPE

[sąrašas]

Numatytas: 0

Type of the new field. One of:

  • 0 — Integer (32 bit)

  • 1 — Decimal (double)

  • 2 — Text (string)

  • 3 — Boolean

  • 4 — Date

  • 5 — Time

  • 6 — Date & Time

  • 7 — Binary Object (BLOB)

  • 8 — String List

  • 9 — Integer List

  • 10 — Decimal (double) List

Field length

FIELD_LENGTH

[numeric: integer]

Default: 10

Length of the field

Field precision

FIELD_PRECISION

[numeric: integer]

Default: 3

Precision of the field. Useful with Float field type.

Global expression

Pasirinktinis

GLOBAL

[string]

The code in the global expression section will be executed only once before the calculator starts iterating through all the features of the input layer. Therefore, this is the correct place to import necessary modules or to calculate variables that will be used in subsequent calculations.

Formula

FORMULA

[string]

The Python formula to evaluate. Example: To calculate the area of an input polygon layer you can add:

value = $geom.area()

Calculated

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Specify the vector layer with the new calculated field. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Calculated

OUTPUT

[toks pat, kaip įvestis]

Vector layer with the new calculated field

Pythono kodas

Algorithm ID: qgis:advancedpythonfieldcalculator

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.6. Drop field(s)

Takes a vector layer and generates a new one that has the same features but without the selected columns.

Taip pat žiūrėkite

Retain fields

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

Input vector layer to drop field(s) from

Fields to drop

COLUMN

[lentelės laukas: bet koks] [sąrašas]

The field(s) to drop

Remaining fields

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Specify the output vector layer with the remaining fields. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Remaining fields

OUTPUT

[toks pat, kaip įvestis]

Vector layer with the remaining fields

Pythono kodas

Algorithm ID: native:deletecolumn

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.7. Explode HStore Field

Creates a copy of the input layer and adds a new field for every unique key in the HStore field.

The expected field list is an optional comma separated list. If this list is specified, only these fields are added and the HStore field is updated. By default, all unique keys are added.

The PostgreSQL HStore is a simple key-value store used in PostgreSQL and GDAL (when reading an OSM file with the other_tags field.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vector: geometry]

Įvesties vektorinis sluoksnis

HStore field

FIELD

[tablefield: any]

The field(s) to drop

Expected list of fields separated by a comma

Pasirinktinis

EXPECTED_FIELDS

[string]

Default: ‚‘

Comma-separated list of fields to extract. The HStore field will be updated by removing these keys.

Exploded

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Nurodykite išvesties vektorinį sluoksnį. Vienas iš:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Exploded

OUTPUT

[toks pat, kaip įvestis]

Output vector layer

Pythono kodas

Algorithm ID: native:explodehstorefield

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.8. Extract binary field

Extracts contents from a binary field, saving them to individual files. Filenames can be generated using values taken from an attribute in the source table or based on a more complex expression.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

Input vector layer containing the binary data

Binary field

FIELD

[tablefield: any]

Field containing the binary data

File name

FILENAME

[išraiška]

Field or expression-based text to name each output file

Destination folder

FOLDER

[folder]

Default: [Save to temporary folder]

Folder in which to store the output files. One of:

  • Save to a Temporary Directory

  • Save to Directory

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Folder

FOLDER

[folder]

The folder that contains the output files.

Pythono kodas

Algorithm ID: native:extractbinary

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.9. Field calculator

Opens the field calculator (see Expressions). You can use all the supported expressions and functions.

A new layer is created with the result of the expression.

The field calculator is very useful when used in Modelių dizaineris.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

The layer to calculate on

Output field name

FIELD_NAME

[string]

The name of the field for the results

Output field type

FIELD_TYPE

[sąrašas]

Numatytas: 0

The type of the field. One of:

  • 0 — Decimal (double)

  • 1 — Integer (32 bit)

  • 2 — Text (string)

  • 3 — Date

  • 4 — Time

  • 5 — Date & Time

  • 6 — Boolean

  • 7 — Binary Object (BLOB)

  • 8 — String List

  • 9 — Integer List

  • 10 — Decimal (double) List

Output field width

FIELD_LENGTH

[numeric: integer]

Numatytas: 0

The length of the result field (minimum 0)

Field precision

FIELD_PRECISION

[numeric: integer]

Numatytas: 0

The precision of the result field (minimum 0, maximum 15)

Create new field

NEW_FIELD

[boolean]

Numatytas: Taip

Should the result field be a new field

Formula

FORMULA

[išraiška]

The formula to use to calculate the result

Calculated

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Specification of the output layer.

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Calculated

OUTPUT

[toks pat, kaip įvestis]

Output layer with the calculated field values

Pythono kodas

Algorithm ID: native:fieldcalculator

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.10. Refactor fields

Allows editing the structure of the attribute table of a vector layer.

Fields can be modified in their type and name, using a fields mapping.

The original layer is not modified. A new layer is generated, which contains a modified attribute table, according to the provided fields mapping.

Pastaba

When using a template layer with constraints on fields, the information is displayed in the widget with a coloured background and tooltip. Treat this information as a hint during configuration. No constraints will be added on an output layer nor will they be checked or enforced by the algorithm.

The Refactor fields algorithm allows to:

  • Change field names and types

  • Add and remove fields

  • Reorder fields

  • Calculate new fields based on expressions

  • Load field list from another layer

../../../../_images/refactor_fields.png

Fig. 24.135 Refactor fields dialog

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

The layer to modify

Fields mapping

FIELDS_MAPPING

[list]

List of output fields with their definitions. The embedded table lists all the fields of the source layer and allows you to edit them:

  • Click newAttribute to create a new field.

  • Click deleteAttribute to remove a field.

  • Use arrowUp and arrowDown to change the selected field order.

  • Click clearText to reset to the default view.

  • Click invertSelection to invert the selection in the fields list.

For each of the fields you’d like to reuse, you need to fill the following options:

Source expression (expression) [expression]

Field or expression from the input layer.

Name (name) [string]

Name of the field in the output layer. By default input field name is kept.

Type (type) [enumeration]

Data type of the output field. Available types may not be compatible with the output layer provider. One of:

Dėmesio

For certain field types, e.g. lists, an extra sub_type parameter helps refine the specific type of the data. It is automatically set in the GUI but may be needed if you’re running the algorithm in Python or from the command line.

  • 1 — Boolean

  • 2 — Integer (32bit)

  • 4 — Integer (64bit)

  • 6 — Decimal (double)

  • 9 — Integer list

  • 9 — Integer (64bit) list

  • 9 — Decimal (double) list

  • 10 — Text (string)

  • 11 — String list

  • 12 — Binary Object (BLOB)

  • 14 — Date

  • 15 — Time

  • 16 — Date & Time

Sub-type (sub_type) [enumeration]

For certain field types, e.g. lists, this parameter helps refine the specific type of the data. It is automatically set in the GUI but may be needed if you’re running the algorithm in Python or from the command line. One of:

  • 2 — Integer list

  • 4 — Integer (64bit) list

  • 6 — Decimal (double) list

  • 10 — String list

  • 0 — Any other types

Length (length) [numeric: integer]

Length of the output field.

Precision (precision) [numeric: integer]

Precision of the output field.

Constraints (constraints) [string]

When using a template layer, indicates whether there are constraints applied to the template field. Hover over the cell to display the constraints.

Alias (field_alias) [string]

Set a name to use as alias for the field. Not supported by all format types. Existing aliases are displayed and will be copied to the destination layer if supported.

Comment (field_comment) [string]

Store a comment describing the field. Not supported by all format types. Existing comments are displayed and will be copied to the destination layer if supported.

Load fields from template layer

Allows to select a layer from the current project as a template and (with Load fields) fill the above „Fields mapping“ options with its fields and their definitions.

Refactored

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Specification of the output layer. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Refactored

OUTPUT

[toks pat, kaip įvestis]

Output layer with refactored fields

Pythono kodas

Algorithm ID: native:refactorfields

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.11. Rename field

Renames an existing field from a vector layer.

The original layer is not modified. A new layer is generated where the attribute table contains the renamed field.

Taip pat žiūrėkite

Refactor fields

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

Įvesties vektorinis sluoksnis

Field to rename

FIELD

[tablefield: any]

The field to be altered

New field name

NEW_NAME

[string]

The new field name

Renamed

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Specification of the output layer. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Renamed

OUTPUT

[toks pat, kaip įvestis]

Output layer with the renamed field

Pythono kodas

Algorithm ID: qgis:renametablefield

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.12. Retain fields

Takes a vector layer and generates a new one that retains only the selected fields. All other fields will be dropped.

Taip pat žiūrėkite

Drop field(s)

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

Įvesties vektorinis sluoksnis

Fields to retain

FIELDS

[lentelės laukas: bet koks] [sąrašas]

List of fields to keep in the layer

Retained fields

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Specification of the output layer. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Retained fields

OUTPUT

[toks pat, kaip įvestis]

Output layer with the retained fields

Pythono kodas

Algorithm ID: native:retainfields

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.1.26.13. Text to float

Modifies the type of a given attribute in a vector layer, converting a text attribute containing numeric strings into a numeric attribute (e.g. ‚1‘ to 1.0).

The algorithm creates a new vector layer so the source one is not modified.

If the conversion is not possible the selected column will have NULL values.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: bet koks]

Įvesties vektorinis sluoksnis.

Text attribute to convert to float

FIELD

[tablefield: string]

The string field for the input layer that is to be converted to a float field.

Float from text

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Kurti laikiną sluoksnį]

Specify the output layer. One of:

  • Kurti laikiną sluoksnį (TEMPORARY_OUTPUT)

  • Įrašyti į failą…

  • Įrašyti į geopackage…

  • Įrašyti į duombazės lentelę…

  • Pridėti į sluoksnį…

Šia taipogi galima pakeisti failo koduotę.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Float from text

OUTPUT

[toks pat, kaip įvestis]

Output vector layer with the string field converted into a float field

Pythono kodas

Algorithm ID: qgis:texttofloat

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.