Ważne
Tłumaczenie jest wysiłkiem społeczności QGISa przyłącz się. Ta strona jest obecnie przetłumaczona w 59.22%.
24.2.6. Vector conversion
24.2.6.1. Konwertuj format
Converts any OGR-supported vector layer into another OGR-supported format.
This algorithm is derived from the ogr2ogr utility.
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[vector: any] |
Input vector layer |
Convert all layers from dataset |
|
[wartość logiczna] Domyślnie: False |
Converts the whole dataset.
Supported output formats for this option are |
Przekonwertowany |
|
[same as input] |
Specification of the output vector layer. One of:
For |
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Additional creation options Opcjonalne |
|
[ciąg tekstowy] Default: «» (no additional options) |
Additional GDAL creation options. |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Przekonwertowany |
|
[same as input] |
The output vector layer |
Kod pythona
ID algorytmu: gdal:convertformat
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.2.6.2. Rasterize (overwrite with attribute)
Overwrites a raster layer with values from a vector layer. New values are assigned based on the attribute value of the overlapping vector feature.
This algorithm is derived from the GDAL rasterize utility.
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[vector: geometry] |
Input vector layer |
Input raster layer |
|
[raster] |
Input raster layer |
Field to use for a burn-in value Opcjonalne |
|
[tablefield: numeric] |
Defines the attribute field to use to set the pixels values |
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Add burn in values to existing raster values |
|
[wartość logiczna] Domyślnie: False |
If False, pixels are assigned the selected field’s value. If True, the selected field’s value is added to the value of the input raster layer. |
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Rasterized |
|
[raster] |
The overwritten input raster layer |
Kod pythona
ID algorytmu: gdal:rasterize_over
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.2.6.3. Rasterize (overwrite with fixed value)
Overwrites parts of a raster layer with a fixed value. The pixels to overwrite are chosen based on the supplied (overlapping) vector layer.
This algorithm is derived from the GDAL rasterize utility.
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[vector: geometry] |
Input vector layer |
Input raster layer |
|
[raster] |
Input raster layer |
A fixed value to burn |
|
[numeric: double] Domyślnie: 0.0 |
The value to burn |
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Add burn in values to existing raster values |
|
[wartość logiczna] Domyślnie: False |
If False, pixels are assigned the fixed value. If True, the fixed value is added to the value of the input raster layer. |
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Rasterized |
|
[raster] |
The overwritten input raster layer |
Kod pythona
ID algorytmu: gdal:rasterize_over_fixed_value
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.2.6.4. Rasterize (vector to raster)
Converts vector geometries (points, lines and polygons) into a raster image.
This algorithm is derived from the GDAL rasterize utility.
Default menu:
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[vector: geometry] |
Input vector layer |
Field to use for a burn-in value Opcjonalne |
|
[tablefield: numeric] |
Defines the attribute field from which the attributes for the pixels should be chosen |
A fixed value to burn Opcjonalne |
|
[numeric: double] Domyślnie: 0.0 |
A fixed value to burn into a band for all features. |
Burn value extracted from the „Z” values of the feature |
|
[wartość logiczna] Domyślnie: False |
Indicates that a burn value should be extracted from the „Z” values of the feature. Works with points and lines (linear interpolation along each segment). For polygons, works properly only if they are flat (same Z value for all vertices) |
Output raster size units |
|
[wyliczenie] Domyślnie: 0 |
Units to use when defining the output raster size/resolution. One of:
|
Width/Horizontal resolution |
|
[numeric: double] Domyślnie: 0.0 |
Sets the width (if size units is „Pixels”) or horizontal resolution (if size units is „Georeferenced units”) of the output raster. Minimum value: 0.0. |
Height/Vertical resolution |
|
[numeric: double] Domyślnie: 0.0 |
Sets the height (if size units is „Pixels”) or vertical resolution (if size units is „Georeferenced units”) of the output raster. |
Output extent Opcjonalne |
|
[zasięg] |
Extent of the output raster layer. If the extent is not specified, the minimum extent that covers the selected reference layer(s) will be used. Available methods are:
|
Assign a specified NoData value to output bands Opcjonalne |
|
[numeric: double] Domyślnie: 0.0 |
Assigns a specified NoData value to output bands |
Rasterized |
|
[raster] Domyślnie: |
Specification of the output raster layer. One of:
For |
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Additional creation options Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
For adding one or more creation options that control the raster to be created (colors, block size, file compression…). For convenience, you can rely on predefined profiles (see GDAL driver options section). Batch Process and Model Designer: separate multiple options with a pipe
character ( |
Output data type |
|
[wyliczenie] Domyślnie: 5 |
Defines the format of the output raster file. Opcje:
Available options depend on the GDAL version built with QGIS (see menu) |
Pre-initialize the output image with value Opcjonalne |
|
[numeric: double] |
Pre-initializes the output image bands with this value. Not marked as the NoData value in the output file. The same value is used in all the bands. |
Invert rasterization |
|
[wartość logiczna] Domyślnie: False |
Burns the fixed burn value, or the burn value associated with the first feature into all parts of the image not inside the provided polygon. |
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Rasterized |
|
[raster] |
Raster wyjściowy |
Kod pythona
ID algorytmu: gdal:rasterize
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.