Ważne
Tłumaczenie jest wysiłkiem społeczności QGISa przyłącz się. Ta strona jest obecnie przetłumaczona w 58.55%.
24.2.4. Raster miscellaneous
24.2.4.1. Build overviews (pyramids)
To speed up rendering time of raster layers overviews (pyramids) can be created. Overviews are lower resolution copies of the data which QGIS uses depending of the level of zoom.
This algorithm is derived from the GDAL addo utility.
Default menu:
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[raster] |
Input raster layer |
Remove all existing overviews |
|
[wartość logiczna] Domyślnie: False |
Removes existing overviews from the raster. By default these are not removed. |
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Overview levels |
|
[ciąg tekstowy] Default: «2 4 8 16» |
Defines the number of overview levels calculated by the original resolution of the input raster layer. By default 4 levels will be taken into consideration. |
Metoda resamplingu Opcjonalne |
|
[wyliczenie] Domyślnie: 0 |
Calculates the overviews with a defined resampling method. Possible resampling methods are:
|
Overviews format Opcjonalne |
|
[wyliczenie] Domyślnie: 0 |
The overviews can be stored internally, or externally as GTiff or ERDAS Imagine file. By default the overviews are stored in the output raster. Possible formats methods are:
|
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Default: Not set |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Pyramidized |
|
[raster] |
Output raster layer with overviews |
Kod pythona
ID algorytmu: gdal:overviews
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.4.2. Build virtual raster
Builds a VRT (Virtual Dataset) that is a mosaic of the list of input GDAL-supported rasters. With a mosaic you can merge several raster files.
This algorithm is derived from the GDAL buildvrt utility.
Default menu:
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwy wejściowe |
|
[raster] [lista] |
GDAL-supported raster layers. |
Rozdzielczość |
|
[wyliczenie] Domyślnie: 0 |
The output resolution of the mosaic. By default the average resolution of the raster files will be chosen. Opcje:
|
Place each input file into a separate band |
|
[wartość logiczna] Domyślnie: False |
With «True» you can define that each raster file goes into a separated stacked band in the VRT band. |
Allow projection difference |
|
[wartość logiczna] Domyślnie: False |
Allows that the output bands have different projections derived from the projection of the input raster layers. |
Virtual |
|
[raster] Domyślnie: |
Specification of the output raster layer. One of:
|
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Add alpha mask band to VRT when source raster has none |
|
[wartość logiczna] Domyślnie: False |
Adds an alpha mask band to the VRT when the source raster has none. |
Override projection for the output file Opcjonalne |
|
[układ współrzędnych] Default: Not set |
Overrides the projection for the output file. No reprojection is done. |
Resampling algorithm |
|
[wyliczenie] Domyślnie: 0 |
The resampling algorithm to use. Options:
|
NoData value(s) for input bands (space separated) Opcjonalne |
|
[ciąg tekstowy] Default: Not set |
Space separated NoData value(s) for input band(s) |
Additional command-line parameters |
|
[ciąg tekstowy] Default: Not set |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Virtual |
|
[raster] |
Raster wyjściowy |
Kod pythona
ID algorytmu: gdal:buildvirtualraster
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.4.3. gdal2tiles
Generates a directory with small tiles and metadata, following the OSGeo Tile Map Service Specification. See also the OpenGIS Web Map Tile Service Implementation Standard. Simple web pages with viewers based on Google Maps, OpenLayers and Leaflet are generated as well. To explore your maps on-line in the web browser, you only need to upload the generated directory onto a web server.
This algorithm also creates the necessary metadata for Google Earth
(KML SuperOverlay), in case the supplied map uses EPSG:4326
projection.
ESRI world files and embedded georeferencing is used during tile generation, but you can publish a picture without proper georeferencing too.
This algorithm is derived from the GDAL gdal2tiles utility.
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[raster] |
GDAL-supported raster layer. |
Tile cutting profile |
|
[wyliczenie] Domyślnie: 0 |
Jeden z:
|
Zoom levels to render Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
|
Web viewer to generate |
|
[wyliczenie] Domyślnie: 0 |
Jeden z:
|
Title of the map Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
|
Copyright of the map |
|
[ciąg tekstowy] Domyślnie: «» |
|
Katalog wynikowy |
|
[folder] Domyślnie: |
Specify the output folder for the tiles. One of:
|
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Metoda resamplingu |
|
[wyliczenie] Domyślnie: 0 |
The resampling algorithm to use. Options:
|
The spatial reference system used for the source input data Opcjonalne |
|
[układ współrzędnych] Default: Not set |
|
Transparency value to assign to the input data Opcjonalne |
|
[numeric: double] Domyślnie: 0.0 |
|
URL address where the generated tiles are going to be published Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
|
Google Maps API key (http://code.google.com/apis/maps/signup.html) Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
Your Google maps API key. |
Bing Maps API key (https://www.bingmapsportal.com/) Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
Your Bing maps API key. |
Generate only missing files |
|
[wartość logiczna] Domyślnie: False |
|
Generate KML for Google Earth |
|
[wartość logiczna] Domyślnie: False |
|
Avoid automatic generation of KML files for EPSG:4326 |
|
[wartość logiczna] Domyślnie: False |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Katalog wynikowy |
|
[folder] |
The output folder (for the tiles) |
Kod pythona
ID algorytmu: gdal:gdal2tiles
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.4.4. Złącz
Merges raster files in a simple way. Here you can use a pseudocolor table from an input raster and define the output raster type. All the images must be in the same coordinate system.
This algorithm is derived from the GDAL merge utility.
Default menu:
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwy wejściowe |
|
[raster] [lista] |
Input raster layers |
Grab pseudocolor table from first layer |
|
[wartość logiczna] Domyślnie: False |
The pseudocolor table from the first layer will be used for the coloring |
Place each input file into a separate band |
|
[wartość logiczna] Domyślnie: False |
Place each input file into a separate band |
Output data type |
|
[wyliczenie] Domyślnie: 5 |
Defines the format of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
Złączone |
|
[raster] Domyślnie: |
Specification of the output raster layer. One of:
|
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Input pixel value to treat as „NoData” Opcjonalne |
|
[numeric: double] Default: Not set |
Ignores pixels from files being merged in with this pixel value |
Assign specified „NoData” value to output Opcjonalne |
|
[numeric: double] Default: Not set |
Assigns the specified NoData value to output bands. |
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 ( |
Additional command-line parameters |
|
[ciąg tekstowy] Default: Not set |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Złączone |
|
[raster] |
Raster wyjściowy |
Kod pythona
ID algorytmu: gdal:merge
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.4.5. Pansharpening
Performs a pan-sharpening operation. It can create a „classic” output dataset (such as GeoTIFF), or a VRT dataset describing the pan-sharpening operation.
See GDAL Pansharpen.
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Spectral dataset |
|
[raster] |
Input (spectral) raster layer |
Panchromatic dataset |
|
[raster] |
Input (panchromatic) raster layer |
Wynik |
|
[raster] Domyślnie: |
Specify the output (sharpened) raster layer. One of:
|
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Resampling algorithm |
|
[wyliczenie] Domyślnie: 2 |
The resampling algorithm to use. Options:
|
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 ( |
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Default: Not set |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Wynik |
|
[raster] |
Output (sharpened) raster layer |
Kod pythona
ID algorytmu: gdal:pansharp
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.4.6. Raster calculator
Command line raster calculator with numpy syntax. Use any basic arithmetic supported by numpy arrays, such as +, -, *, and / along with logical operators, such as >. Note that all input rasters must have the same dimensions, but no projection checking is performed.
See the GDAL Raster Calculator utility docs.
Zobacz także
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Input layer A |
|
[raster] |
First input raster layer (mandatory) |
Number of raster band for A |
|
[raster band] |
Band for input layer A (mandatory) |
Input layer B Opcjonalne |
|
[raster] Default: Not set |
Second input raster layer |
Number of raster band for B Opcjonalne |
|
[raster band] |
Band for input layer B |
Input layer C Opcjonalne |
|
[raster] Default: Not set |
Third input raster layer |
Number of raster band for C Opcjonalne |
|
[raster band] |
Band for input layer C |
Input layer D Opcjonalne |
|
[raster] Default: Not set |
Fourth input raster layer |
Number of raster band for D Opcjonalne |
|
[raster band] |
Band for input layer D |
Input layer E Opcjonalne |
|
[raster] Default: Not set |
Fifth input raster layer |
Number of raster band for E Opcjonalne |
|
[raster band] |
Band for input layer E |
Input layer F Opcjonalne |
|
[raster] |
Sixth input raster layer |
Number of raster band for F Opcjonalne |
|
[raster band] Default: Not set |
Band for input layer F |
Calculation in gdalnumeric syntax using +-/* or any numpy array functions (i.e. logical_and()) |
|
[ciąg tekstowy] Domyślnie: «» |
The calculation formula. Examples:
|
Set output NoData value Opcjonalne |
|
[numeric: double] Default: Not set |
Value to use for NoData |
Handling of extent differences |
|
[wyliczenie] Domyślnie: 0 |
Determines how to handle rasters with different extents. Only available with GDAL 3.3+. Supported options are:
|
Output extent Opcjonalne |
|
[zasięg] |
Custom extent of the output raster. Only available with GDAL 3.3+. Available methods are:
|
Output raster type |
|
[wyliczenie] Domyślnie: 5 |
Defines the data type of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
Obliczone |
|
[raster] Domyślnie: |
Specify the output (calculated) raster layer. One of:
|
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 ( |
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Obliczone |
|
[raster] |
Output (calculated) raster layer |
Kod pythona
ID algorytmu: gdal:rastercalculator
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.4.7. Raster information
The gdalinfo program lists various information about a GDAL supported raster dataset.
This algorithm is derived from the GDAL info utility.
Default menu:
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[raster] |
Input raster layer |
Force computation of the actual min/max values for each band |
|
[wartość logiczna] Domyślnie: False |
Forces computation of the actual min/max values for each band in the dataset |
Read and display image statistics (force computation if necessary) |
|
[wartość logiczna] Domyślnie: False |
Reads and displays image statistics. Forces computation if no statistics are stored in an image. |
Suppress GCP info |
|
[wartość logiczna] Domyślnie: False |
Suppresses ground control points list printing. It may be useful for datasets with huge amount of GCPs, such as L1B AVHRR or HDF4 MODIS which contain thousands of them. |
Suppress metadata info |
|
[wartość logiczna] Domyślnie: False |
Suppresses metadata printing. Some datasets may contain a lot of metadata strings. |
Layer information |
|
[html] Domyślnie: |
Specify the HTML file for output. One of:
|
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Default: Not set |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Layer information |
|
[html] |
The HTML file containing information about the input raster layer |
Kod pythona
ID algorytmu: gdal:gdalinfo
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.4.8. Retile
Retiles a set of input tiles. All the input tiles must be georeferenced in the same coordinate system and have a matching number of bands. Optionally pyramid levels are generated.
This algorithm is derived from the GDAL Retile utility.
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Input files |
|
[raster] [lista] |
The input raster files |
Tile width |
|
[numeric: integer] Domyślnie: 256 |
Width of the tiles in pixels (minimum 0) |
Wysokość kafla |
|
[numeric: integer] Domyślnie: 256 |
Height of the tiles in pixels (minimum 0) |
Overlap in pixels between consecutive tiles |
|
[numeric: integer] Domyślnie: 0 |
|
Number of pyramid levels to build |
|
[numeric: integer] Domyślnie: 1 |
Minimum: 0 |
Katalog wynikowy |
|
[folder] Domyślnie: |
Specify the output folder for the tiles. One of:
|
CSV file containing the tile(s) georeferencing information |
|
[plik] Default: |
Specify the output file for the tiles. One of:
|
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Source coordinate reference system Opcjonalne |
|
[układ współrzędnych] Default: Not set |
|
Metoda resamplingu |
|
[wyliczenie] Domyślnie: 0 |
The resampling algorithm to use. Options:
|
Column delimiter used in the CSV file Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «;» |
Delimiter to use in the CSV file containing the tile(s) georeferencing information |
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 ( |
Additional command-line parameters Opcjonalne |
|
[ciąg tekstowy] Domyślnie: «» |
Add extra GDAL command line options |
Output data type |
|
[wyliczenie] Domyślnie: 5 |
Defines the format of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
Build only the pyramids |
|
[wartość logiczna] Domyślnie: False |
|
Use separate directory for each tile row |
|
[wartość logiczna] Domyślnie: False |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Katalog wynikowy |
|
[folder] |
The output folder for the tiles. |
CSV file containing the tile(s) georeferencing information |
|
[plik] |
The CSV file with georeferencing information for the tiles. |
Kod pythona
ID algorytmu: gdal:retile
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.4.9. Tile index
Builds a vector layer with a record for each input raster file, an attribute containing the filename, and a polygon geometry outlining the raster. This output is suitable for use with MapServer as a raster tileindex.
This algorithm is derived from the GDAL Tile Index utility.
Default menu:
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Input files |
|
[raster] [lista] |
The input raster files. Can be multiple files. |
Field name to hold the file path to the indexed rasters |
|
[ciąg tekstowy] Default: «location» |
The output field name to hold the file path/location to the indexed rasters. |
Store absolute path to the indexed rasters |
|
[wartość logiczna] Domyślnie: False |
Set whether the absolute path to the raster files is stored in the tile index file. By default the raster filenames will be put in the file exactly as they are specified in the command. |
Skip files with different projection reference |
|
[wartość logiczna] Domyślnie: False |
Only files with same projection as files already inserted in the tile index will be inserted. Default does not check projection and accepts all inputs. |
Tile index |
|
[vector: polygon] Domyślnie: |
Specify the polygon vector layer to write the index to. One of:
|
Parametry zaawansowane
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Transform geometries to the given CRS Opcjonalne |
|
[układ współrzędnych] |
Geometries of input files will be transformed to the specified target coordinate reference system. Default creates simple rectangular polygons in the same coordinate reference system as the input rasters. |
The name of the field to store the SRS of each tile Opcjonalne |
|
[ciąg tekstowy] |
The name of the field to store the SRS of each tile |
The format in which the CRS of each tile must be written |
|
[wyliczenie] Domyślnie: 0 |
Format for the CRS. One of:
|
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Tile index |
|
[vector: polygon] |
The polygon vector layer with the tile index. |
Kod pythona
ID algorytmu: gdal:tileindex
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.4.10. Viewshed
Calculates a viewshed raster from an input raster DEM using method defined in Wang2000 for a user defined point.
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[raster] |
Input elevation raster layer |
Band number |
|
[raster band] Domyślnie: 1 |
The number of the band to use as elevation |
Observer location |
|
[punkt] |
The location of the observer |
Observer height |
|
[numeric: double] Domyślnie: 1.0 |
The altitude of the observer, in the DEM units |
Target height |
|
[numeric: double] Domyślnie: 1.0 |
The altitude of the target element, in the DEM units |
Maximum distance from observer to compute visibility |
|
[numeric: double] Domyślnie: 100.0 |
Maximum distance from observer to compute visibility, in the DEM units |
Wynik |
|
[raster] Domyślnie: |
Output raster layer. One of:
|
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 ( |
Additional command-line parameters |
|
[ciąg tekstowy] Default: Not set |
Add extra GDAL command line options |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Wynik |
|
[raster] |
The raster layer displaying the viewshed. |
Kod pythona
ID algorytmu: gdal:viewshed
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.