Svarbu

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

24.2.8. Įvairūs vektoriniai

24.2.8.1. Kurti virtualų vektorių

Kuria virtualų vektorinį sluoksnį, kuriame yra vektorinių sluoksnių aibė.

Šis algoritmas ypatingai naudingas, kai kitam algoritmui reikia kelių sluoksnių, bet jis priima tik vieną vrt, kuriame nurodyti sluoksniai.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties duomenų šaltiniai

INPUT

[vektorius: bet koks] [sąrašas]

Parinkite vektorinius sluoksnius, kuriuos norite naudoti kuriant virtualų vektorių

Kurti „sąjungos“ VRT

UNIONED

[boolean]

Numatytas: ne

Įjunkite, jei norite apjungti visus vektorius į vieną vrt failą

Virtualus vektorius

OUTPUT

[toks pat, kaip įvestis]

Numatytas: [Įrašyti į laikiną failą]

Specify the output layer containing only the duplicates. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Virtualus vektorius

OUTPUT

[vector: any]

Išvesties vektorinis sluoksnis, sukurtas iš parinktų šaltinių

Pythono kodas

Algoritmo ID: gdal:buildvirtualvector

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.2.8.2. Execute SQL

Runs a simple or complex query with SQL syntax on the source layer. The result of the query will be added as a new layer.

Šis algoritmas kilęs iš GDAL ogr2ogr įrankio.

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vector: any]

OGR-supported input vector layer

SQL expression

SQL

[string]

Defines the SQL query, for example SELECT * FROM my_table WHERE name is not null.

SQL dialect

DIALECT

[sąrašas]

Numatytas: 0

SQL dialect to use. One of:

  • 0 — None

  • 1 — OGR SQL

  • 2 — SQLite

SQL result

OUTPUT

[vector: any]

Specification of the output layer. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

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

Išmanesni parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Papildomos kūrimo parinktys

Pasirinktinis

OPTIONS

[string]

Numatytas: ‚‘ (jokių papildomų parinkčių)

Papildomos GDAL kūrimo parinktys.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

SQL result

OUTPUT

[vector: any]

Vector layer created by the query

Pythono kodas

Algorithm ID: gdal:executesql

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.2.8.3. Export to PostgreSQL (available connections)

Imports vector layers inside a PostgreSQL database on the basis of an available connection. The connection has to be defined properly beforehand. Be aware that the checkboxes ‚Save Username‘ and ‚Save Password‘ are activated. Then you can use the algorithm.

Šis algoritmas kilęs iš GDAL ogr2ogr įrankio.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Database (connection name)

DATABASE

[string]

The PostgreSQL database to connect to

Įvesties sluoksnis

INPUT

[vector: any]

OGR-supported vector layer to export to the database

Shape encoding

Pasirinktinis

SHAPE_ENCODING

[string]

Numatytas: ‚‘

Sets the encoding to apply to the data

Output geometry type

GTYPE

[sąrašas]

Numatytas: 0

Defines the output geometry type. One of:

  • 0 —

  • 1 — NONE

  • 2 — GEOMETRY

  • 3 — POINT

  • 4 — LINESTRING

  • 5 — POLYGON

  • 6 — GEOMETRYCOLLECTION

  • 7 — MULTIPOINT

  • 8 — MULTIPOLYGON

  • 9 — MULTILINESTRING

  • 10 — CIRCULARSTRING

  • 11 — COUMPOUNDCURVE

  • 12 — CURVEPOLYGON

  • 13 — MULTICURVE

  • 14 — MULTISURFACE

  • 15 — CONVERT_TO_LINEAR

  • 16 — CONVERT_TO_CURVE

Assign an output CRS

Pasirinktinis

A_SRS

[crs]

Numatytas: jokio

Defines the output CRS of the database table

Reproject to this CRS on output

Pasirinktinis

T_SRS

[crs]

Numatytas: jokio

Reprojects/transforms to this CRS on output

Override source CRS

Pasirinktinis

S_SRS

[crs]

Numatytas: jokio

Overrides the input layer CRS

Schema (schema name)

Pasirinktinis

SCHEMA

[string]

Default: ‚public‘

Defines the schema for the database table

Table to export to (leave blank to use layer name)

Pasirinktinis

TABLE

[string]

Numatytas: ‚‘

Defines a name for the table that will be imported into the database. By default the table name is the name of the input vector file.

Primary Key (new field)

Pasirinktinis

PK

[string]

Default: ‚id‘

Defines which attribute field will be the primary key of the database table

Primary Key (existing field, used if the above option is left empty)

Pasirinktinis

PRIMARY_KEY

[tablefield: any]

Numatytas: jokio

Defines which attribute field in the exported layer will be the primary key of the database table

Geometrijos stulpelio pavadinimas

Pasirinktinis

GEOCOLUMN

[string]

Default: ‚geom‘

Defines in which attribute field of the database there will be the geometry information

Vector dimensions

Pasirinktinis

DIM

[sąrašas]

Default: 0 (2D)

Defines the coordinate dimensions of the imported vector data. One of:

  • 0 — 2 (XY)

  • 1 — 3 (XYZ)

  • 2 — 4 (XYZM)

Distance tolerance for simplification

Pasirinktinis

SIMPLIFY

[string]

Numatytas: ‚‘

Defines a distance tolerance for the simplification of the vector geometries to be imported. By default there is no simplification.

Maximum distance between 2 nodes (densification)

Pasirinktinis

SEGMENTIZE

[string]

Numatytas: ‚‘

The maximum distance between two nodes. Used to create intermediate points. By default there is no densification.

Select features by extent (defined in input layer CRS)

Pasirinktinis

SPAT

[apimtis]

Numatytas: jokio

You can select features from a given extent that will be in the output table.

Galimi metodai yra:

  • Skaičiuoti pagal sluoksnį…: naudoja dabartiniame projekte įkelto sluoksnio apimtį

  • Skaičiuoti pagal išdėstymo žemėlapį…: naudoja aktyvaus projekto išdėstymo žemėlapio elemento apimtį

  • Skaičiuoti pagal žymelę…: naudoja įrašytos žymelės apimtį

  • Naudoti žemėlapio drobės apimtį

  • Braižyti drobėje: spauskite ir tempkite stačiakampį, apibrėžianti norimą plotą

  • Įveskite koordinates kaip xmin, xmax, ymin, ymax

Clip the input layer using the above (rectangle) extent

CLIP

[boolean]

Numatytas: ne

The input layer will be clipped by the extent you defined before

Select features using a SQL „WHERE“ statement (Ex: column=“value“)

Pasirinktinis

WHERE

[string]

Numatytas: ‚‘

Defines with a SQL „WHERE“ statement which features should be selected from the input layer

Group N features per transaction (Default: 2000)

Pasirinktinis

GT

[string]

Numatytas: ‚‘

You can group the input features in transactions where N defines the size. By default N limits the transaction size to 20000 features.

Overwrite existing table

OVERWRITE

[boolean]

Numatytas: Taip

If there is a table with the same name in the database, and if this option is set to True, the table will be overwritten.

Append to existing table

APPEND

[boolean]

Numatytas: ne

If checked / True the vector data will be appended to an existing table. New fields found in the input layer are ignored. By default a new table will be created.

Append and add new fields to existing table

ADDFIELDS

[boolean]

Numatytas: ne

If activated the vector data will be appended to an existing table, there won’t be a new table created. New fields found in input layer are added to the table. By default a new table will be created.

Do not launder columns/table names

LAUNDER

[boolean]

Numatytas: ne

With this option checked you can prevent the default behaviour (converting column names to lowercase, removing spaces and other invalid characters).

Do not create Spatial Index

INDEX

[boolean]

Numatytas: ne

Prevents a spatial index for the output table from being created. By default, a spatial index is added.

Continue after a failure, skipping the failed feature

SKIPFAILURES

[boolean]

Numatytas: ne

Continue after a failure, skipping the failed feature.

Validate geometries based on Simple Features specification

MAKEVALID

[boolean]

Numatytas: ne

Applies cleanup operations on geometries to ensure they are valid regarding the rules of the Simple Features specification.

Promote to Multipart

PROMOTETOMULTI

[boolean]

Numatytas: Taip

Casts features geometry type to multipart in the output table

Keep width and precision of input attributes

PRECISION

[boolean]

Numatytas: Taip

Avoids modifying column attributes to comply with input data

Papildomos kūrimo parinktys

Pasirinktinis

OPTIONS

[string]

Numatytas: ‚‘ (jokių papildomų parinkčių)

Papildomos GDAL kūrimo parinktys.

Išvestys

This algorithm has no output.

Pythono kodas

Algorithm ID: gdal:importvectorintopostgisdatabaseavailableconnections

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.2.8.4. Export to PostgreSQL (new connection)

Imports vector layers inside a PostgreSQL database. A new connection to the PostGIS database must be created.

Šis algoritmas kilęs iš GDAL ogr2ogr įrankio.

Parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vector: any]

OGR-supported vector layer to export to the database

Shape encoding

Pasirinktinis

SHAPE_ENCODING

[string]

Numatytas: ‚‘

Sets the encoding to apply to the data

Output geometry type

GTYPE

[sąrašas]

Numatytas: 0

Defines the output geometry type. One of:

  • 0 —

  • 1 — NONE

  • 2 — GEOMETRY

  • 3 — POINT

  • 4 — LINESTRING

  • 5 — POLYGON

  • 6 — GEOMETRYCOLLECTION

  • 7 — MULTIPOINT

  • 8 — MULTIPOLYGON

  • 9 — MULTILINESTRING

  • 10 — CIRCULARSTRING

  • 11 — COUMPOUNDCURVE

  • 12 — CURVEPOLYGON

  • 13 — MULTICURVE

  • 14 — MULTISURFACE

  • 15 — CONVERT_TO_LINEAR

  • 16 — CONVERT_TO_CURVE

Assign an output CRS

Pasirinktinis

A_SRS

[crs]

Numatytas: jokio

Defines the output CRS of the database table

Reproject to this CRS on output

Pasirinktinis

T_SRS

[crs]

Numatytas: jokio

Reprojects/transforms to this CRS on output

Override source CRS

Pasirinktinis

S_SRS

[crs]

Numatytas: jokio

Overrides the input layer CRS

Host

Pasirinktinis

HOST

[string]

Default: ‚localhost‘

Name of the database host

Port

Pasirinktinis

PORT

[string]

Default: ‚5432‘

Port number the PostgreSQL database server listens on

Username

Pasirinktinis

USER

[string]

Numatytas: ‚‘

User name used to log in to the database

Database name

Pasirinktinis

DBNAME

[string]

Numatytas: ‚‘

Name of the database

Password

Pasirinktinis

PASSWORD

[string]

Numatytas: ‚‘

Password used with Username to connect to the database

Schema (schema name)

Pasirinktinis

SCHEMA

[string]

Default: ‚public‘

Defines the schema for the database table

Table name, leave blank to use input name

Pasirinktinis

TABLE

[string]

Numatytas: ‚‘

Defines a name for the table that will be imported into the database. By default the table name is the name of the input vector file.

Primary Key (new field)

Pasirinktinis

PK

[string]

Default: ‚id‘

Defines which attribute field will be the primary key of the database table

Primary Key (existing field, used if the above option is left empty)

Pasirinktinis

PRIMARY_KEY

[tablefield: any]

Numatytas: jokio

Defines which attribute field in the exported layer will be the primary key of the database table

Geometrijos stulpelio pavadinimas

Pasirinktinis

GEOCOLUMN

[string]

Default: ‚geom‘

Defines in which attribute field to store the geometry information

Vector dimensions

Pasirinktinis

DIM

[sąrašas]

Default: 0 (2D)

Defines the coordinate dimensions of the imported vector data. One of:

  • 0 — 2 (XY)

  • 1 — 3 (XYZ)

  • 2 — 4 (XYZM)

Distance tolerance for simplification

Pasirinktinis

SIMPLIFY

[string]

Numatytas: ‚‘

Defines a distance tolerance for the simplification of the vector geometries to be imported. By default there is no simplification.

Maximum distance between 2 nodes (densification)

Pasirinktinis

SEGMENTIZE

[string]

Numatytas: ‚‘

The maximum distance between two nodes. Used to create intermediate points. By default there is no densification.

Select features by extent (defined in input layer CRS)

Pasirinktinis

SPAT

[apimtis]

Numatytas: jokio

You can select features from a given extent that will be in the output table.

Galimi metodai yra:

  • Skaičiuoti pagal sluoksnį…: naudoja dabartiniame projekte įkelto sluoksnio apimtį

  • Skaičiuoti pagal išdėstymo žemėlapį…: naudoja aktyvaus projekto išdėstymo žemėlapio elemento apimtį

  • Skaičiuoti pagal žymelę…: naudoja įrašytos žymelės apimtį

  • Naudoti žemėlapio drobės apimtį

  • Braižyti drobėje: spauskite ir tempkite stačiakampį, apibrėžianti norimą plotą

  • Įveskite koordinates kaip xmin, xmax, ymin, ymax

Clip the input layer using the above (rectangle) extent

CLIP

[boolean]

Numatytas: ne

The input layer will be clipped by the extent you defined before

Fields to include (leave empty to use all fields)

Pasirinktinis

FIELDS

[string] [list]

Default: []

Defines fields to keep from the imported vector file. If none is selected, all the fields are imported.

Select features using a SQL „WHERE“ statement (Ex: column=“value“)

Pasirinktinis

WHERE

[string]

Numatytas: ‚‘

Defines with a SQL „WHERE“ statement which features should be selected for the output table

Group N features per transaction (Default: 2000)

Pasirinktinis

GT

[string]

Numatytas: ‚‘

You can group the input features in transactions where N defines the size. By default N limits the transaction size to 20000 features.

Overwrite existing table

OVERWRITE

[boolean]

Numatytas: Taip

If there is a table with the same name in the database, and if this option is set to True, the table will be overwritten.

Append to existing table

APPEND

[boolean]

Numatytas: ne

If checked / True the vector data will be appended to an existing table. New fields found in the input layer are ignored. By default a new table will be created.

Append and add new fields to existing table

ADDFIELDS

[boolean]

Numatytas: ne

If activated the vector data will be appended to an existing table, there won’t be created a new table. New fields found in input layer are added to the table. By default a new table will be created.

Do not launder columns/table names

LAUNDER

[boolean]

Numatytas: ne

With this option checked you can prevent the default behaviour (converting column names to lowercase, removing spaces and other invalid characters).

Do not create Spatial Index

INDEX

[boolean]

Numatytas: ne

Prevents a spatial index for the output table from being created. By default, a spatial index is added.

Continue after a failure, skipping the failed feature

SKIPFAILURES

[boolean]

Numatytas: ne

Continue after a failure, skipping the failed feature.

Validate geometries based on Simple Features specification

MAKEVALID

[boolean]

Numatytas: ne

Applies cleanup operations on geometries to ensure they are valid regarding the rules of the Simple Features specification.

Promote to Multipart

PROMOTETOMULTI

[boolean]

Numatytas: Taip

Casts features geometry type to multipart in the output table

Keep width and precision of input attributes

PRECISION

[boolean]

Numatytas: Taip

Avoids modifying column attributes to comply with input data

Papildomos kūrimo parinktys

Pasirinktinis

OPTIONS

[string]

Numatytas: ‚‘ (jokių papildomų parinkčių)

Papildomos GDAL kūrimo parinktys.

Išvestys

This algorithm has no output.

Pythono kodas

Algorithm ID: gdal:importvectorintopostgisdatabasenewconnection

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.2.8.5. Vector Information

Creates an information file that lists information about an OGR-supported data source. The output will be shown in a ‚Result‘ window and can be written into a HTML-file. The information includes the geometry type, feature count, the spatial extent, the projection information, the list of attributes and related type, list of relations and field domains, and many more.

This algorithm is derived from the GDAL ogrinfo utility.

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: geometrija]

Įvesties vektorinis sluoksnis

Enable listing of all layers in the dataset

ALL_LAYERS

[boolean]

Numatytas: ne

If checked, QGIS will output the information of all the layers in the input dataset instead of information of the first layer only. Convenient when a multi layer format (GeoPackage, GML, KML, SpatiaLite, SQLite, …) is used as input.

Summary output only

SUMMARY_ONLY

[boolean]

Numatytas: Taip

Suppress listing of individual features and show only summary information like projection, schema, feature count and extents.

Suppress metadata info

NO_METADATA

[boolean]

Numatytas: ne

Suppress metadata printing. Some datasets may contain a lot of metadata strings.

Layer information

OUTPUT

[html]

Numatytas: [Įrašyti į laikiną failą]

Specify the output HTML file that includes the file information. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

If no HTML-file is defined the output will be written to a temporary file

Išmanesni parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Additional command line parameters

Pasirinktinis

EXTRA

[string]

Numatytas: ‚‘ (jokių papildomų parinkčių)

Pridėkite papildomas GDAL komandinės eilutės parinktis

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Layer information

OUTPUT

[html]

The output HTML-file that includes the file information.

Pythono kodas

Algorithm ID: gdal:ogrinfo

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.2.8.6. Vector Information (JSON)

Creates an information file that lists information about an OGR-supported data source. The output will be shown in a ‚Result‘ window and can be written into a .JSON file. The information includes the geometry type, feature count, the spatial extent, the projection information, the list of attributes and related type, list of relations and field domains, and many more.

This algorithm is derived from the GDAL ogrinfo utility.

Requires version of GDAL >= 3.7

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[vektorius: geometrija]

Įvesties vektorinis sluoksnis

Enable listing of all layers in the dataset

ALL_LAYERS

[boolean]

Numatytas: ne

If checked, QGIS will output the information of all the layers in the input dataset instead of information of the first layer only. Convenient when a multi layer format (GeoPackage, GML, KML, SpatiaLite, SQLite, …) is used as input.

Enable listing of features

FEATURES

[boolean]

Numatytas: ne

Suppress metadata info

NO_METADATA

[boolean]

Numatytas: ne

Suppress metadata printing. Some datasets may contain a lot of metadata strings.

Layer information

OUTPUT

[file]

Numatytas: [Įrašyti į laikiną failą]

Specify the output JSON file that includes the file information. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

If no JSON file is defined the output will be written to a temporary file

Išmanesni parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Additional command line parameters

Pasirinktinis

EXTRA

[string]

Numatytas: ‚‘ (jokių papildomų parinkčių)

Pridėkite papildomas GDAL komandinės eilutės parinktis

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Layer information

OUTPUT

[file]

The output .JSON file that includes the file information.

Pythono kodas

Algorithm ID: gdal:ogrinfojson

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.