27.1.16. Vector creation
27.1.16.1. Array of offset (parallel) lines
Creates copies of line features in a layer, by creating multiple offset versions of each feature. Each new version is incrementally offset by a specified distance.
Positive distance will offset lines to the left, and negative distances will offset them to the right.
Allows features in-place modification of line features
Vezi și
Parametri
Parametri de bază
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat de intrare |
|
[vector: linie] |
Input line vector layer to use for the offsets. |
Number of features to create |
|
Implicit: 10 |
Number of offset copies to generate for each feature |
Offset step distance |
|
Implicit: 1.0 |
Distance between two consecutive offset copies |
Offset lines |
|
[vector: linie] Implicit: |
Specify the output line layer with offset features. One of:
The file encoding can also be changed here. |
Parametri avansați
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Segments |
|
[număr] Implicit: 8 |
Number of line segments to use to approximate a quarter circle when creating rounded offsets |
Join style |
|
[enumerare] Implicit: 0 |
Specify whether round, miter or beveled joins should be used when offsetting corners in a line. One of:
|
Miter limit |
|
[număr] Implicit: 2.0 |
Sets the maximum distance from the offset geometry to use when creating a mitered join as a factor of the offset distance (only applicable for miter join styles). Minimum: 1.0 |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Offset lines |
|
[vector: linie] |
Output line layer with offset features. The original features are also copied. |
Cod Python
ID Algorithm: nativ:arrayoffsetlines
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.2. Array of translated features
Creates copies of features in a layer by creating multiple translated versions of each. Each copy is incrementally displaced by a preset amount in the X, Y and/or Z axis.
M values present in the geometry can also be translated.
Allows features in-place modification of point, line, and polygon features
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat de intrare |
|
[vector: oricare] |
Input vector layer to translate |
Number of features to create |
|
Implicit: 10 |
Number of copies to generate for each feature |
Step distance (x-axis) |
|
Implicit: 0.0 |
Displacement to apply on the X axis |
Step distance (y-axis) |
|
Implicit: 0.0 |
Displacement to apply on the Y axis |
Step distance (z-axis) |
|
Implicit: 0.0 |
Displacement to apply on the Z axis |
Step distance (m values) |
|
Implicit: 0.0 |
Displacement to apply on M |
Translated |
|
[la fel ca intrarea] Implicit: |
Output vector layer with translated (moved) copies of the features. The original features are also copied. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Translated |
|
[la fel ca intrarea] |
Output vector layer with translated (moved) copies of the features. The original features are also copied. |
Cod Python
ID Algorithm: nativ:arraytranslatedfeatures
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.3. Create grid
Creates a vector layer with a grid covering a given extent. Grid cells can have different shapes:
The size of each element in the grid is defined using a horizontal and vertical spacing.
The CRS of the output layer must be defined.
The grid extent and the spacing values must be expressed in the coordinates and units of this CRS.
Default menu:
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Grid type |
|
[enumerare] Implicit: 0 |
Shape of the grid. One of:
|
Grid extent |
|
[extent] |
Extent of the grid Metodele disponibile sunt:
|
Horizontal spacing |
|
[număr] Implicit: 1.0 |
Size of a grid cell on the X-axis |
Vertical spacing |
|
[număr] Implicit: 1.0 |
Size of a grid cell on the Y-axis |
Horizontal overlay |
|
[număr] Implicit: 0.0 |
Overlay distance between two consecutive grid cells on the X-axis |
Vertical overlay |
|
[număr] Implicit: 0.0 |
Overlay distance between two consecutive grid cells on the Y-axis |
Grid CRS |
|
[crs] Implicit: CRS-ul proiectului |
Coordinate reference system to apply to the grid |
Grid |
|
[vector: oricare] Implicit: |
Resulting vector grid layer. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Grid |
|
[vector: oricare] |
Resulting vector grid layer. The output geometry type (point, line or polygon) depends on the Grid type. |
Cod Python
ID Algorithm: nativ:creategrid
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.4. Create points layer from table
Creates points layer from a table with columns that contain coordinates fields.
Besides X and Y coordinates you can also specify Z and M fields.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat de intrare |
|
[vector: oricare] |
Input vector layer or a table. |
X field |
|
[tablefield: any] |
Field containing the X coordinate |
Y field |
|
[tablefield: any] |
Field containing the Y coordinate |
Z field Opţional |
|
[tablefield: any] |
Field containing the Z coordinate |
M field Opţional |
|
[tablefield: any] |
Field containing the M value |
CRS-ul destinației |
|
[crs] Default: |
Coordinate reference system to use for layer. The provided coordinates are assumed to be compliant. |
Points from table |
|
[vector: punct] Implicit: |
Specify the resulting point layer. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Points from table |
|
[vector: punct] |
The resulting point layer |
Cod Python
ID Algorithm: nativ:createpointslayerfromtable
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.5. Generate points (pixel centroids) along line
Generates a point vector layer from an input raster and line layer.
The points correspond to the pixel centroids that intersect the line layer.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat raster |
|
[raster] |
Stratul raster de intrare |
Vector layer |
|
[vector: linie] |
Input line vector layer |
Points along line |
|
[vector: punct] Implicit: |
Resulting point layer with pixel centroids. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Points along line |
|
[vector: punct] |
Resulting point layer with pixel centroids |
Cod Python
Algorithm ID: qgis:generatepointspixelcentroidsalongline
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.6. Generate points (pixel centroids) inside polygon
Generates a point vector layer from an input raster and polygon layer.
The points correspond to the pixel centroids that intersect the polygon layer.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat raster |
|
[raster] |
Stratul raster de intrare |
Vector layer |
|
[vector: poligon] |
Input polygon vector layer |
Points inside polygons |
|
[vector: punct] Implicit: |
Resulting point layer of pixel centroids. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Points inside polygons |
|
[vector: punct] |
Resulting point layer of pixel centroids |
Cod Python
ID Algorithm: nativ:generatepointspixelcentroidsinsidepolygons
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.7. Import geotagged photos
Creates a point layer corresponding to the geotagged locations from JPEG images from a source folder.
The point layer will contain a single PointZ feature per input file from which the geotags could be read. Any altitude information from the geotags will be used to set the point’s Z value.
Besides longitude and latitude also altitude, direction and timestamp information, if present in the photo, will be added to the point as attributes.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input folder |
|
[folder] |
Path to the source folder containing the geotagged photos |
Scan recursively |
|
[boolean] Implicit: False |
If checked, the folder and its subfolders will be scanned |
Photos Opţional |
|
[vector: punct] Implicit: |
Specify the point vector layer for the geotagged photos. One of:
The file encoding can also be changed here. |
Invalid photos table Opţional |
|
[tabelă] Implicit: |
Specify the table of unreadable or non-geotagged photos. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Photos |
|
[vector: punct] |
Point vector layer with geotagged photos. The form of the layer is automatically filled with paths and photo previews settings. |
Invalid photos table Opţional |
|
[tabelă] |
Table of unreadable or non-geotagged photos can also be created. |
Cod Python
ID Algorithm: nativ:importphotos
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.8. Points to path
Converts a point layer to a line layer, by joining points in an order defined by an expression or a field in the input point layer.
Points can be grouped by a field or an expression to distinguish line features.
In addition to the line vector layer, a text file is output that describes the resulting line as a start point and a sequence of bearings / directions (relative to azimuth) and distances.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input point layer |
|
[vector: punct] |
Input point vector layer |
Create closed paths |
|
[boolean] Implicit: False |
If checked, the first and last points of the line will be connected and close the generated path |
Order expression Opţional |
|
[expresie] |
Field or expression providing the order to connect the points in the path.
If not set, the feature ID ( |
Sort text containing numbers naturally Opţional |
|
[boolean] Implicit: False |
If checked, naturally sorts the features based on the provided expression (i.e., «a9» < «a10»). |
Path group expression Opţional |
|
[expresie] |
Point features of the same value in the field or expression will be grouped in the same line. If not set, a single path is drawn with all the input points. |
Paths |
|
[vector: linie] Implicit: |
Specify the line vector layer of the path. One of:
The file encoding can also be changed here. |
Directory for text output Opţional |
|
[folder] Implicit: |
Specify the directory that will contain the description files of points and paths. One of:
|
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Paths |
|
[vector: linie] |
Line vector layer of the path |
Directory for text output |
|
[folder] |
Directory containing description files of points and paths |
Cod Python
ID Algorithm: nativ:pointstopath
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.9. Puncte aleatorii de-a lungul liniei
Creates a new point layer, with points placed on the lines of another layer.
For each line in the input layer, a given number of points is added to the resulting layer. The procedure for adding a point is to:
randomly select a line feature from the input layer
if the feature is multi-part, randomly select a part of it
randomly select a segment of that line
randomly select a position on that segment.
The procedure means that curved parts of the lines (with relatively short segments) will get more points than straight parts (with relatively long segments), as demonstrated in the illustration below, where the output of the Random points along lines algorithm can be compared with the output of the Random points on lines algorithm (that produces points with an, on average, even distribution along the lines).
A minimum distance can be specified, to avoid points being too close to each other.
Vezi și
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input point layer |
|
[vector: linie] |
Input line vector layer |
Number of points |
|
[număr] Implicit: 1 |
Number of points to create |
Minimum distance between points |
|
[număr] Implicit: 0.0 |
The minimum distance between points |
Random points |
|
[vector: punct] Implicit: |
The output random points. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Random points |
|
[vector: punct] |
The output random points layer. |
Cod Python
Algorithm ID: qgis:qgisrandompointsalongline
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.10. Random points in extent
Creates a new point layer with a given number of random points, all of them within a given extent.
A distance factor can be specified, to avoid points being too close to each other. If the minimum distance between points makes it impossible to create new points, either distance can be decreased or the maximum number of attempts may be increased.
Default menu:
Parametri
Parametri de bază
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input extent |
|
[extent] |
Map extent for the random points Metodele disponibile sunt:
|
Number of points |
|
[număr] Implicit: 1 |
Number of point to create |
Minimum distance between points |
|
[număr] Implicit: 0.0 |
The minimum distance between points |
CRS-ul destinației |
|
[crs] Implicit: CRS-ul proiectului |
CRS of the random points layer |
Random points |
|
[vector: punct] Implicit: |
The output random points. One of:
The file encoding can also be changed here. |
Parametri avansați
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Maximum number of search attempts given the minimum distance |
|
[număr] Implicit: 200 |
Maximum number of attempts to place the points |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Random points |
|
[vector: punct] |
The output random points layer. |
Cod Python
ID Algorithm: nativ:randompointsinextent
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.11. Random points in layer bounds
Creates a new point layer with a given number of random points, all of them within the extent of a given layer.
A minimum distance can be specified, to avoid points being too close to each other.
Default menu:
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat de intrare |
|
[vector: poligon] |
Input polygon layer defining the area |
Number of points |
|
[număr] Implicit: 1 |
Number of points to create |
Minimum distance between points |
|
[număr] Implicit: 0.0 |
The minimum distance between points |
Random points |
|
[vector: punct] Implicit: |
The output random points. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Random points |
|
[vector: punct] |
The output random points layer. |
Cod Python
Algorithm ID: qgis:randompointsinlayerbounds
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.12. Random points in polygons
Creates a point layer with points placed inside the polygons of another layer.
For each feature (polygon / multi-polygon) geometry in the input layer, the given number of points is added to the result layer.
Per feature and global minimum distances can be specified in order to avoid points being too close in the output point layer. If a minimum distance is specified, it may not be possible to generate the specified number of points for each feature. The total number of generated points and missed points are available as output from the algorithm.
The illustration below shows the effect of per feature and global minimum distances and zero/non-zero minimum distances (generated with the same seed, so at least the first point generated will be the same).
The maximum number of tries per point can be specified. This is only relevant for non-zero minimum distance.
A seed for the random number generator can be provided, making it possible to get identical random number sequences for different runs of the algorithm.
The attributes of the polygon feature on which a point was generated can be included (Include polygon attributes).
If you want approximately the same point density for all the features, you can data-define the number of points using the area of the polygon feature geometry.
Vezi și
Parametri
Parametri de bază
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input polygon layer |
|
[vector: linie] |
Input polygon vector layer |
Number of points for each feature |
|
Implicit: 1 |
Number of points to create |
Minimum distance between points Opţional |
|
Implicit: 0.0 |
The minimum distance between points within one polygon feature |
Random points in polygons |
|
[vector: punct] Implicit: |
The output random points. One of:
The file encoding can also be changed here. |
Parametri avansați
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Global minimum distance between points Opţional |
|
Implicit: 0.0 |
The global minimum distance between points. Should be smaller than the Minimum distance between points (per feature) for that parameter to have an effect. |
Maximum number of search attempts (for Min. dist. > 0) Opţional |
|
Implicit: 10 |
The maximum number of tries per point. Only relevant if the minimum distance between points is set (and greater than 0). |
Random seed Opţional |
|
[număr] Implicit: Nesetat |
The seed to use for the random number generator. |
Include polygon attributes |
|
[boolean] Implicit: True |
If set, a point will get the attributes from the line on which it is placed. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Random points in polygons |
|
[vector: punct] |
The output random points layer. |
Number of features with empty or no geometry |
|
[număr] |
|
Total number of points generated |
|
[număr] |
|
Number of missed points |
|
[număr] |
The number of points that could not be generated due to the minimum distance constraint. |
Number of features with missed points |
|
[număr] |
Not including features with empty or no geometry |
Cod Python
ID Algorithm: nativ:randompointsinpolygons
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.13. Random points inside polygons
Creates a new point layer with a given number of random points inside each polygon of the input polygon layer.
Two sampling strategies are available:
Points count: number of points for each feature
Points density: density of points for each feature
A minimum distance can be specified, to avoid points being too close to each other.
Default menu:
Vezi și
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat de intrare |
|
[vector: poligon] |
Input polygon vector layer |
Sampling strategy |
|
[enumerare] Implicit: 0 |
Sampling strategy to use. One of:
|
Point count or density |
|
Implicit: 1.0 |
The number or density of points, depending on the chosen Sampling strategy. |
Minimum distance between points |
|
[număr] Implicit: 0.0 |
The minimum distance between points |
Random points |
|
[vector: punct] Implicit: |
The output random points. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Random points |
|
[vector: punct] |
The output random points layer. |
Cod Python
Algorithm ID: qgis:randompointsinsidepolygons
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.14. Random points on lines
Creates a point layer with points placed on the lines of another layer.
For each feature (line / multi-line) geometry in the input layer, the given number of points is added to the result layer.
Per feature and global minimum distances can be specified in order to avoid points being too close in the output point layer. If a minimum distance is specified, it may not be possible to generate the specified number of points for each feature. The total number of generated points and missed points are available as output from the algorithm.
The illustration below shows the effect of per feature and global minimum distances and zero/non-zero minimum distances (generated with the same seed, so at least the first point generated will be the same).
The maximum number of tries per point can be specified. This is only relevant for non-zero minimum distance.
A seed for the random number generator can be provided, making it possible to get identical random number sequences for different runs of the algorithm.
The attributes of the line feature on which a point was generated can be included (Include line attributes).
If you want approximately the same point density for all the line features, you can data-define the number of points using the length of the line feature geometry.
Parametri
Parametri de bază
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Stratul liniar de intrare |
|
[vector: linie] |
Input line vector layer |
Number of points for each feature |
|
Implicit: 1 |
Number of points to create |
Minimum distance between points (per feature) Opţional |
|
Implicit: 0.0 |
The minimum distance between points within one line feature |
Random points on lines |
|
[vector: punct] Implicit: |
The output random points. One of:
The file encoding can also be changed here. |
Parametri avansați
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Global minimum distance between points Opţional |
|
Implicit: 0.0 |
The global minimum distance between points. Should be smaller than the Minimum distance between points (per feature) for that parameter to have an effect. |
Maximum number of search attempts (for Min. dist. > 0) Opţional |
|
Implicit: 10 |
The maximum number of tries per point. Only relevant if the minimum distance between points is set (and greater than 0). |
Random seed Opţional |
|
[număr] Implicit: Nesetat |
The seed to use for the random number generator. |
Include line attributes |
|
[boolean] Implicit: True |
If set, a point will get the attributes from the line on which it is placed. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Random points on lines |
|
[vector: punct] |
The output random points layer. |
Number of features with empty or no geometry |
|
[număr] |
|
Number of features with missed points |
|
[număr] |
Not including features with empty or no geometry |
Total number of points generated |
|
[număr] |
|
Number of missed points |
|
[număr] |
The number of points that could not be generated due to the minimum distance constraint. |
Cod Python
ID Algorithm: nativ:randompointsonlines
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.15. Raster pixels to points
Creates a vector layer of points corresponding to each pixel in a raster layer.
Converts a raster layer to a vector layer, by creating point features for each individual pixel’s center in the raster layer. Any nodata pixels are skipped in the output.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat raster |
|
[raster] |
Stratul raster de intrare |
Numărul benzii |
|
[raster band] |
Raster band to extract data from |
Field name |
|
[string] Implicit: «VALUE» |
Name of the field to store the raster band value |
Vector points |
|
[vector: punct] Implicit: |
Specify the resulting point layer of pixels centroids. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Vector points |
|
[vector: punct] |
Resulting point layer with pixels centroids |
Cod Python
ID Algorithm: nativ:pixelstopoints
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.16. Raster pixels to polygons
Creates a vector layer of polygons corresponding to each pixel in a raster layer.
Converts a raster layer to a vector layer, by creating polygon features for each individual pixel’s extent in the raster layer. Any nodata pixels are skipped in the output.
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Strat raster |
|
[raster] |
Stratul raster de intrare |
Numărul benzii |
|
[raster band] |
Raster band to extract data from |
Field name |
|
[string] Implicit: «VALUE» |
Name of the field to store the raster band value |
Vector polygons |
|
[vector: poligon] Implicit: |
Specify the resulting polygon layer of pixel extents. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Vector polygons |
|
[vector: poligon] |
Resulting polygon layer of pixel extents |
Cod Python
ID Algorithm: nativ:pixelstopolygons
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.
27.1.16.17. Regular points
Creates a new point layer with its points placed in a regular grid within a given extent.
The grid is specified either by the spacing between the points (same spacing for all dimensions) or by the number of points to generate. In the latter case, the spacing will be determined from the extent. In order to generate a full rectangular grid, at least the number of points specified by the user is generated for the latter case.
Random offsets to the point spacing can be applied, resulting in a non-regular point pattern.
Default menu:
Parametri
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Input extent (xmin, xmax, ymin, ymax) |
|
[extent] |
Map extent for the random points Metodele disponibile sunt:
|
Point spacing/count |
|
[număr] Implicit: 100 |
Spacing between the points, or the number of points, depending
on whether |
Initial inset from corner (LH side) |
|
[număr] Implicit: 0.0 |
Offsets the points relative to the upper left corner. The value is used for both the X and Y axis. |
Apply random offset to point spacing |
|
[boolean] Implicit: False |
If checked the points will have a random spacing |
Use point spacing |
|
[boolean] Implicit: True |
If unchecked the point spacing is not taken into account |
Output layer CRS |
|
[crs] Implicit: CRS-ul proiectului |
CRS of the random points layer |
Regular points |
|
[vector: punct] Implicit: |
Specify the output regular point layer. One of:
The file encoding can also be changed here. |
Rezultat
Etichetă |
Nume |
Tipul |
Descriere |
---|---|---|---|
Regular points |
|
[vector: punct] |
The output regular point layer. |
Cod Python
Algorithm ID: qgis:regularpoints
import processing
processing.run("algorithm_id", {parameter_dictionary})
ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.