Svarbu
Vertimas yra bendruomenės pastangos, prie kurių jūs galite prisijungti. Šis puslapis šiuo metu išverstas 69.23%.
24.1.24. Vektorių persidengimai
24.1.24.1. Apkirpti
Apkerpa vektorinį sluoksnį naudojant geoobjektus iš papildomo poligonų sluoksnio.
Į rezultatų sluoksnį bus įtrauktos tik tos pradinio sluoksnio geoobjektų dalys, kurios patenka į persidengimo sluoksnio poligonus.
Įspėjimas
Keičiama tik geometrija
Šis veiksmas keičia tik geoobjekto geometriją. Geoobjektų atributų reikšmės nekeičiamos, nors geoobjektų savybės, tokios kaip plotas ar ilgis, gali pasikeisti. Jei šios savybės laikomos atributuose, juos reikės pakeisti rankiniu būdu.
Šis algoritmas naudoja tiekėjų erdvinius indeksus, paruoštas geometrijas ir apkarpymo veiksmą taiko tik jei geometrija nepatenka pilnai į slėpimo geometriją.

Fig. 24.119 Karpymo veiksmas su dviejų geoobjektų įvesties sluoksniu „a“ ir vieno geoobjekto perdengimo sluoksniu „b“ (kairėje) - gaunamas naujas sluoksnis su pakeistais „a“ geoobjektais (dešinėje)
Leidžia taškų, linijų ir poligonų geoobjektus keisti vietoje
Numatytas meniu:
Taip pat žiūrėkite
Parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Sluoksnis su apkerpamais geoobjektais |
Perdengimo sluoksnis |
|
[vektorius: poligonas] |
Sluoksnis su apkirpimo geoobjektais |
Apkirpta |
|
[toks pat, kaip įvestis] Numatytas: |
Nurodykite sluoksnį, kuriame bus geoobjektai iš įvesties sluoksnio, kurie patenka į perdengimo (apkirpimo) sluoksnį. Vienas iš:
Šia taipogi galima pakeisti failo koduotę. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Apkirpta |
|
[toks pat, kaip įvestis] |
Sluoksnis su geoobjektais iš įvesties sluoksnio, padalintais perdengimo sluoksniu. |
Pythono kodas
Algoritmo ID: qgis:clip
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.24.2. Difference
Extracts features from the input layer that don’t fall within the boundaries of the overlay layer.
Input layer features that partially overlap the overlay layer feature(s) are split along the boundary of those feature(s) and only the portions outside the overlay layer features are retained.
Įspėjimas
Keičiama tik geometrija
Šis veiksmas keičia tik geoobjekto geometriją. Geoobjektų atributų reikšmės nekeičiamos, nors geoobjektų savybės, tokios kaip plotas ar ilgis, gali pasikeisti. Jei šios savybės laikomos atributuose, juos reikės pakeisti rankiniu būdu.

Fig. 24.120 Difference operation between a two-features input layer ‚a‘ and a single feature overlay layer ‚b‘ (left) - resulting in a new layer with the modified ‚a‘ features (right)
Leidžia taškų, linijų ir poligonų geoobjektus keisti vietoje
Numatytas meniu:
Taip pat žiūrėkite
Parametrai
Baziniai parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Layer to extract (parts of) features from. |
Perdengimo sluoksnis |
|
[vector: any] |
Layer containing the geometries that will be subtracted from the input layer geometries. It is expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer geometries. |
Difference |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain the (parts of) features from the input layer that are not inside the overlay layer. One of:
Šia taipogi galima pakeisti failo koduotę. |
Advanced parameters
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Grid size Pasirinktinis |
|
[number] Numatytas: jokio |
If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Difference |
|
[toks pat, kaip įvestis] |
Layer containing (parts of) features from the input layer not overlapping the overlay layer. |
Pythono kodas
Algorithm ID: qgis:difference
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.24.3. Difference (multiple)
Extracts features from the input layer that fall completely outside or only partially overlap the features from any of the overlay layer(s).
For each overlay layer the difference is calculated between the result of all previous difference operations and this overlay layer. Input layer features that partially overlap feature(s) in the overlay layer are split along those features‘ boundary and only the portions outside the overlay layer features are retained.
Įspėjimas
Keičiama tik geometrija
Šis veiksmas keičia tik geoobjekto geometriją. Geoobjektų atributų reikšmės nekeičiamos, nors geoobjektų savybės, tokios kaip plotas ar ilgis, gali pasikeisti. Jei šios savybės laikomos atributuose, juos reikės pakeisti rankiniu būdu.

Fig. 24.121 Difference operation between a two-feature input layer ‚a‘ and single feature overlay layers ‚b‘ and ‚c‘ (left) - resulting in a new layer with the modified ‚a‘ features (right)
Taip pat žiūrėkite
Parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Layer to extract (parts of) features from. |
Overlay layers |
|
[vector: any] [list] |
List of layers containing the geometries that will be subtracted from the input layer geometries. They are expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer geometries. |
Difference |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain the (parts of) features from the input layer that do not overlap features of the overlay layers. One of:
Šia taipogi galima pakeisti failo koduotę. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Difference |
|
[toks pat, kaip įvestis] |
Layer containing (parts of) features from the input layer not overlapping features from the overlay layers. |
Pythono kodas
Algorithm ID: qgis:multidifference
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.24.4. Extract/clip by extent
Creates a new vector layer that only contains features which fall within a specified extent. Any features which intersect the extent will be included by default.

Fig. 24.122 Extract operation between a three-feature input layer ‚a‘ and a dashed extent (left) - resulting features with dashed extent for reference (right)
Optionally, feature geometries can also be clipped to the extent.

Fig. 24.123 Extract operation between a three-feature input layer ‚a‘ and a dashed extent (left) - resulting features with dashed extent for reference (right)
Taip pat žiūrėkite
Parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Layer to extract (parts of) features from. |
Extent (xmin, xmax, ymin, ymax) |
|
[extent] |
Extent for clipping. Available methods are:
|
Clip features to extent |
|
[boolean] Numatytas: ne |
If checked, the geometries will be clipped to the extent chosen instead of taking the whole geometry as output. Moreover, output geometries will be automatically converted to multi geometries to ensure uniform output types. |
Extracted |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain the features from the input layer that are inside the clip extent. One of:
Šia taipogi galima pakeisti failo koduotę. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Extracted |
|
[toks pat, kaip įvestis] |
Layer containing the clipped features. |
Pythono kodas
Algorithm ID: native:extractbyextent
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.24.5. Intersection
Extracts the portions of features from the input layer that overlap features in the overlay layer.
Features in the intersection layer are assigned the attributes of the overlapping features from both the input and overlay layers.
Įspėjimas
Keičiama tik geometrija
Šis veiksmas keičia tik geoobjekto geometriją. Geoobjektų atributų reikšmės nekeičiamos, nors geoobjektų savybės, tokios kaip plotas ar ilgis, gali pasikeisti. Jei šios savybės laikomos atributuose, juos reikės pakeisti rankiniu būdu.

Fig. 24.124 Intersection operation between a two-feature input layer ‚a‘ and a single feature overlay layer ‚b‘ (left) - overlapping areas become a new two-feature layer with both layers‘ attributes (right)
Numatytas meniu:
Įspėjimas
This algorithm drops existing primary keys or FID values and regenerates them in output layers.
Taip pat žiūrėkite
Parametrai
Baziniai parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Layer to extract (parts of) features from. |
Perdengimo sluoksnis |
|
[vector: any] |
Layer containing the features to check for overlap. Its features‘ geometry is expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer’s. |
Input fields to keep (leave empty to keep all fields) Pasirinktinis |
|
[lentelės laukas: bet koks] [sąrašas] Numatytas: jokio |
Field(s) of the input layer to keep in the output. If no fields are chosen all fields are taken. |
Overlay fields to keep (leave empty to keep all fields) Pasirinktinis |
|
[lentelės laukas: bet koks] [sąrašas] Numatytas: jokio |
Field(s) of the overlay layer to keep in the output. If no fields are chosen all fields are taken. Duplicate field names will be appended a count suffix to avoid collision. |
Intersection |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain (the parts of) the features from the input layer that overlap one or more features from the overlay layer. One of:
Šia taipogi galima pakeisti failo koduotę. |
Advanced parameters
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Overlay fields prefix Pasirinktinis |
|
[string] |
Add a prefix to identify fields of the overlay layer. Duplicate field names will be appended a count suffix to avoid collision. |
Grid size Pasirinktinis |
|
[number] Numatytas: jokio |
If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Intersection |
|
[toks pat, kaip įvestis] |
Layer containing (parts of) features from the input layer that overlap the overlay layer. |
Pythono kodas
Algorithm ID: qgis:intersection
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.24.6. Intersection (multiple)
Extracts the overlapping portions of features in the input and all overlay layers.
Features in the output layer are assigned the attributes of the overlapping features from both the input and overlay layers.
Įspėjimas
Keičiama tik geometrija
Šis veiksmas keičia tik geoobjekto geometriją. Geoobjektų atributų reikšmės nekeičiamos, nors geoobjektų savybės, tokios kaip plotas ar ilgis, gali pasikeisti. Jei šios savybės laikomos atributuose, juos reikės pakeisti rankiniu būdu.

Fig. 24.125 Intersection operation between a two-feature input layer ‚a‘ and single feature overlay layers ‚b‘ and ‚c‘ (left) - overlapping areas become a new two-feature layer with all layers‘ attributes (right)
Įspėjimas
This algorithm drops existing primary keys or FID values and regenerate them in output layers.
Taip pat žiūrėkite
Parametrai
Baziniai parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Layer to extract (parts of) features from. |
Overlay layers |
|
[vector: any] [list] |
Layers containing the features to check for overlap. The features‘ geometry is expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer’s. |
Advanced parameters
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Overlay fields prefix Pasirinktinis |
|
[string] |
Add a prefix to identify fields of the overlay layers. Duplicate field names will be appended a count suffix to avoid collision. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Intersection |
|
[toks pat, kaip įvestis] |
Layer containing (parts of) features from the input layer that overlap all the overlay layers. |
Pythono kodas
Algorithm ID: qgis:multiintersection
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.24.7. Line intersections
Creates point features where the lines from the two layers intersect.

Fig. 24.126 Points of intersection
Default menu:
Įspėjimas
This algorithm drops existing primary keys or FID values and regenerate them in output layers.
Parametrai
Baziniai parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vektorius: linija] |
Input line layer. |
Intersect layer |
|
[vektorius: linija] |
Layer to use to find line intersections. |
Input fields to keep (leave empty to keep all fields) Pasirinktinis |
|
[lentelės laukas: bet koks] [sąrašas] Numatytas: jokio |
Field(s) of the input layer to keep in the output. If no fields are chosen all fields are taken. |
Intersect fields to keep (leave empty to keep all fields) Pasirinktinis |
|
[lentelės laukas: bet koks] [sąrašas] Numatytas: jokio |
Field(s) of the intersect layer to keep in the output. If no fields are chosen all fields are taken. Duplicate field names will be appended a count suffix to avoid collision. |
Intersection |
|
[vector: point] Numatytas: |
Specify the layer to contain the intersection points of the lines from the input and overlay layers. One of:
Šia taipogi galima pakeisti failo koduotę. |
Advanced parameters
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Intersect fields prefix Pasirinktinis |
|
[string] |
Add a prefix to identify fields of the intersect layer. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Intersections |
|
[vector: point] |
Point vector layer of the lines intersections, with both layers‘ attributes. |
Pythono kodas
Algorithm ID: qgis:lineintersections
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.24.8. Split with lines
Splits the lines or polygons in one layer using the lines or polygon rings in another layer to define the breaking points. Intersection between geometries in both layers are considered as split points.
Output will contain multi geometries for split features.

Fig. 24.127 Split lines
Allows features in-place modification
of line and polygon features
Įspėjimas
This algorithm drops existing primary keys or FID values and regenerate them in output layers.
Parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: line, polygon] |
Layer containing the lines or polygons to split. |
Split layer |
|
[vector: line, polygon] |
Layer whose lines or rings are used to define the breaking points. |
Split |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain the splitted (in case they are intersected by a line in the split layer) line/polygon features from the input layer. One of:
Šia taipogi galima pakeisti failo koduotę. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Split |
|
[toks pat, kaip įvestis] |
Output vector layer with split lines or polygons from input layer. |
Pythono kodas
Algorithm ID: qgis:splitwithlines
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.24.9. Symmetrical difference
Creates a layer containing features from both the input and overlay layers but with the overlapping areas between the two layers removed.
The attribute table of the symmetrical difference layer contains attributes and fields from both the input and overlay layers.
Įspėjimas
Keičiama tik geometrija
Šis veiksmas keičia tik geoobjekto geometriją. Geoobjektų atributų reikšmės nekeičiamos, nors geoobjektų savybės, tokios kaip plotas ar ilgis, gali pasikeisti. Jei šios savybės laikomos atributuose, juos reikės pakeisti rankiniu būdu.

Fig. 24.128 Symmetrical difference operation between a two-features input layer ‚a‘ and a single feature overlay layer ‚b‘ (left) - resulting three-feature layer with both layers‘ attributes (right)
Numatytas meniu:
Įspėjimas
This algorithm drops existing primary keys or FID values and regenerate them in output layers.
Taip pat žiūrėkite
Parametrai
Baziniai parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
First layer to extract (parts of) features from. |
Perdengimo sluoksnis |
|
[vector: any] |
Second layer to extract (parts of) features from. Ideally the geometry type should be the same as input layer. |
Symmetrical difference |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain (the parts of) the features from the input and overlay layers that do not overlap features from the other layer. One of:
Šia taipogi galima pakeisti failo koduotę. |
Advanced parameters
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Overlay fields prefix Pasirinktinis |
|
[string] |
Add a prefix to identify fields of the overlay layer. Duplicate field names will be appended a count suffix to avoid collision. |
Grid size Pasirinktinis |
|
[number] Numatytas: jokio |
If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Symmetrical difference |
|
[toks pat, kaip įvestis] |
Layer containing (parts of) features from each layer not overlapping the other layer, with both layers‘ attributes. |
Pythono kodas
Algorithm ID: qgis:symmetricaldifference
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.24.10. Union
Checks overlaps between features within the input layer and creates separate features for overlapping and non-overlapping parts. The area of overlap will create as many identical overlapping features as there are features that participate in that overlap.

Fig. 24.129 Union operation with a single input layer with two overlapping features (left) - resulting in four features (middle) - features moved for clarity (right)
An overlay layer can also be used, in which case features from each layer are split at their overlap with features from the other one, creating a layer containing all the portions from both input and overlay layers. Features on the same layer will not split each other. The attribute table of the union layer is filled with attribute values from the respective original layer for non-overlapping features, and attribute values from both layers for overlapping features.

Fig. 24.130 Union operation between a two-feature input layer ‚a‘ and a single feature overlay layer ‚b‘ (left) - resulting five-feature layer with attributes from both layers (right)
Pastaba
With an overlay layer, features on the same layer will not split each other. If you want to split overlaps on the same layer as well as other layers, first run the algorithm with multiple layers then run the algorithm again with only the previous output.
Numatytas meniu:
Įspėjimas
This algorithm drops existing primary keys or FID values and regenerate them in output layers.
Taip pat žiūrėkite
Parametrai
Baziniai parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Input vector layer to split at any intersections. |
Perdengimo sluoksnis Pasirinktinis |
|
[vector: any] |
Layer that will be combined to the first one. Ideally the geometry type should be the same as input layer. |
Union |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain the (split and duplicated) features from the input layer and the overlay layer. One of:
Šia taipogi galima pakeisti failo koduotę. |
Advanced parameters
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Overlay fields prefix Pasirinktinis |
|
[string] |
Add a prefix to identify fields of the overlay layer. Duplicate field names will be appended a count suffix to avoid collision. |
Grid size Pasirinktinis |
|
[number] Numatytas: jokio |
If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Union |
|
[toks pat, kaip įvestis] |
Layer containing all the overlapping and non-overlapping parts from the processed layer(s). |
Pythono kodas
Algorithm ID: qgis:union
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.24.11. Union (multiple)
Checks overlaps between features within the input layer and creates separate features for overlapping and non-overlapping parts. The area of overlap will create as many identical overlapping features as there are features that participate in that overlap.

Fig. 24.131 Union operation with a single input layer with two overlapping features (left) - resulting in four features (middle) - features moved for clarity (right)
Multiple overlay layers can also be used, in which case features from each layer are split at their overlap with features from all other layers, creating a layer containing all the portions from both input and overlay layers. Features on the same layer will not split each other. The attribute table of the Union layer is filled with attribute values from the respective original layer for non-overlapping features, and attribute values from overlay layers for overlapping features.

Fig. 24.132 Union operation between a two-feature input layer ‚a‘ and single feature overlay layers ‚b‘ and ‚c‘ (left) - resulting eleven-feature layer with attributes from all layers (right)
Pastaba
With an overlay layer, features on the same layer will not split each other. If you want to split overlaps on the same layer as well as other layers, first run the algorithm with multiple layers then run the algorithm again with only the previous output.
Įspėjimas
This algorithm drops existing primary keys or FID values and regenerate them in output layers.
Taip pat žiūrėkite
Parametrai
Baziniai parametrai
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Įvesties sluoksnis |
|
[vector: any] |
Input vector layer to split at any intersections. |
Overlay layers Pasirinktinis |
|
[vector: any] [list] |
Layers that will be combined to the first one. Ideally the geometry type should be the same as input layer. |
Union |
|
[toks pat, kaip įvestis] Numatytas: |
Specify the layer to contain the (split and duplicated) features from the input layer and the overlay layers. One of:
Šia taipogi galima pakeisti failo koduotę. |
Advanced parameters
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Overlay fields prefix Pasirinktinis |
|
[string] |
Add a prefix to identify fields of the overlay layers. Duplicate field names will be appended a count suffix to avoid collision. |
Išvestys
Užrašas |
Pavadinimas |
Tipas |
Aprašymas |
---|---|---|---|
Union |
|
[toks pat, kaip įvestis] |
Layer containing all the overlapping and non-overlapping parts from the processed layer(s), with all layers‘ attributes. |
Pythono kodas
Algorithm ID: qgis:multiunion
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.