Ważne

Tłumaczenie jest wysiłkiem społeczności QGISa przyłącz się. Ta strona jest obecnie przetłumaczona w 67.18%.

24.1.18. Narzędzia rastrowe

24.1.18.1. Dopasuj raster

Aligns raster by resampling it to the same cell size and reprojecting to the same CRS as a reference raster.

Ostrzeżenie

This algorithm is ONLY available in the Model Designer context. For other contexts, use instead Dopasuj rastry.

Parametry

Etykieta

Nazwa

Typ

Opis

Warstwa wejściowa

INPUT

[raster]

Wejściowy raster do dopasowania

Metoda resamplingu

RESAMPLING_METHOD

[wyliczenie]

Domyślnie: 0

Method to use for input layer resampling. Available options are:

  • 0 — Najbliższy sąsiad

  • 1 — Dwuliniowa (jądro 2x2)

  • 2 — Sześcienna (jądro 4x4)

  • 3 — Sześcienna krzywą B-sklejaną (jądro 4x4)

  • 4 — Lanczosa (jądro 6x6)

  • 5 — Średnia

  • 6 — Tryb

  • 7 — Maksimum

  • 8 — Minimum

  • 9 — Mediana

  • 10 — Pierwszego kwartyla (Q1)

  • 11 — Trzeciego kwartyla (Q3)

Przeskaluj wartości zależnie od rozmiaru komórki

RESCALE

[wartość logiczna]

Domyślnie: Nie

Warstwa referencyjna

REFERENCE_LAYER

[raster]

A raster layer that will be used to fetch extent, cell size and CRS that will be applied to input layers.

Nadpisz ukłąd współrzędnych

Opcjonalne

CRS

[układ współrzędnych]

Układ współrzędnych, który zostanie użyty zamiast referencyjnego (z warstwy referencyjnej)

Nadpisz referencyjny rozmiar komórki X

Opcjonalne

CELL_SIZE_X

[numeric: double]

Cell size in X direction to be used instead of the reference layer’s

Nadpisz referencyjny rozmiar komórki Y

Opcjonalne

CELL_SIZE_Y

[numeric: double]

Cell size in Y direction to be used instead of the reference layer’s

Override reference grid offset X

Opcjonalne

GRID_OFFSET_X

[numeric: double]

Offset in X direction to apply to cells grid

Override reference grid offset Y

Opcjonalne

GRID_OFFSET_Y

[numeric: double]

Offset in Y direction to apply to cells grid

Przytnij do zasięgu

Opcjonalne

EXTENT

[zasięg]

Specify the extent of the output raster layer. It will internally be extended to a multiple of the tile size.

Available methods are:

  • Calculate from layer…: uses extent of a layer loaded in the current project

  • Calculate from layout map…: uses extent of a layout map item in the active project

  • Calculate from bookmark…: uses extent of a saved bookmark

  • Use map canvas extent

  • Draw on canvas: click and drag a rectangle delimiting the area to take into account

  • Enter the coordinates as xmin, xmax, ymin, ymax

Dopasowany raster

OUTPUT

[raster]

raster wyjściowy ze zmienionymi pikselami

Wyniki

Etykieta

Nazwa

Typ

Opis

Dopasowany raster

OUTPUT

[raster]

raster wyjściowy ze zmienionymi pikselami

Kod pythona

ID algorytmu: native:alignsingleraster

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.1.18.2. Dopasuj rastry

Dopasowuje rastry poprzez ponowny ich resampling do tego samego rozmiaru komórki i ponowną reprojekcję do tego samego układu współrzędnych jak warstwa referencyjna.

Ostrzeżenie

This algorithm is NOT available in the Model Designer context. Use instead Dopasuj raster.

Parametry

Etykieta

Nazwa

Typ

Opis

Warstwy wejściowe

INPUT

[raster] [lista]

List of input raster layers with resampling options associated (filled as a QgsProcessingParameterAlignRasterLayers item — done in GUI by pressing Configure Raster… button for each selected layer):

Input layer [string] (inputFile)

Full path of the input layer to align

Output file [string] (outputFile)

Full path of the corresponding aligned output layer

Resampling method [enumeration] (resampleMethod)

Method to use for input layer resampling. Available options are:

  • 0 — Najbliższy sąsiad

  • 1 — Dwuliniowa (jądro 2x2)

  • 2 — Sześcienna (jądro 4x4)

  • 3 — Sześcienna krzywą B-sklejaną (jądro 4x4)

  • 4 — Lanczosa (jądro 6x6)

  • 5 — Średnia

  • 6 — Tryb

  • 7 — Maksimum

  • 8 — Minimum

  • 9 — Mediana

  • 10 — Pierwszego kwartyla (Q1)

  • 11 — Trzeciego kwartyla (Q3)

Rescale values according to the cell size [boolean] (rescale)

Warstwa referencyjna

REFERENCE_LAYER

[raster]

A raster layer that will be used to fetch extent, cell size and CRS that will be applied to input layers.

Nadpisz ukłąd współrzędnych

Opcjonalne

CRS

[układ współrzędnych]

Układ współrzędnych, który zostanie użyty zamiast referencyjnego (z warstwy referencyjnej)

Nadpisz referencyjny rozmiar komórki X

Opcjonalne

CELL_SIZE_X

[numeric: double]

Cell size in X direction to be used instead of the reference layer’s

Nadpisz referencyjny rozmiar komórki Y

Opcjonalne

CELL_SIZE_Y

[numeric: double]

Cell size in Y direction to be used instead of the reference layer’s

Override reference grid offset X

Opcjonalne

GRID_OFFSET_X

[numeric: double]

Offset in X direction to apply to cells grid

Override reference grid offset Y

Opcjonalne

GRID_OFFSET_Y

[numeric: double]

Offset in Y direction to apply to cells grid

Przytnij do zasięgu

Opcjonalne

EXTENT

[zasięg]

Specify the extent of the output raster layer. It will internally be extended to a multiple of the tile size.

Available methods are:

  • Calculate from layer…: uses extent of a layer loaded in the current project

  • Calculate from layout map…: uses extent of a layout map item in the active project

  • Calculate from bookmark…: uses extent of a saved bookmark

  • Use map canvas extent

  • Draw on canvas: click and drag a rectangle delimiting the area to take into account

  • Enter the coordinates as xmin, xmax, ymin, ymax

Wyniki

Etykieta

Nazwa

Typ

Opis

Aligned rasters

OUTPUT_LAYERS

[raster] [lista]

output rasters with pixels resampled

Kod pythona

ID algorytmu: native:alignrasters

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.1.18.3. Convert map to raster

Creates a raster image of map canvas content.

A map theme can be selected to render a predetermined set of layers with a defined style for each layer.

Alternatively, a single layer can be selected if no map theme is set.

If neither map theme nor layer is set, the current map content will be rendered. The minimum extent entered will internally be extended to be a multiple of the tile size.

Parametry

Etykieta

Nazwa

Typ

Opis

Minimum extent to render (xmin, xmax, ymin, ymax)

EXTENT

[zasięg]

Specify the extent of the output raster layer. It will internally be extended to a multiple of the tile size.

Available methods are:

  • Calculate from layer…: uses extent of a layer loaded in the current project

  • Calculate from layout map…: uses extent of a layout map item in the active project

  • Calculate from bookmark…: uses extent of a saved bookmark

  • Use map canvas extent

  • Draw on canvas: click and drag a rectangle delimiting the area to take into account

  • Enter the coordinates as xmin, xmax, ymin, ymax

Tile size

TILE_SIZE

[numeric: integer]

Domyślnie: 1024

Size of the tile of the output raster layer. Minimum value: 64.

Map units per pixel

MAP_UNITS_PER_PIXEL

[numeric: double]

Domyślnie: 100.0

Pixel size (in map units). Minimum value: 0.0

Make background transparent

MAKE_BACKGROUND_TRANSPARENT

[wartość logiczna]

Domyślnie: False

Allows exporting the map with a transparent background. Outputs an RGBA (instead of RGB) image if set to True.

Map theme to render

Opcjonalne

MAP_THEME

[wyliczenie]

Use an existing map theme for the rendering.

Single layer to render

Opcjonalne

LAYER

[wyliczenie]

Choose a single layer for the rendering

Warstwa wynikowa

OUTPUT

[raster]

Domyślnie: [Zapisz do pliku tymczasowego]

Specification of the output raster. One of:

  • Zapisz do pliku tymczasowego

  • Zapisz do pliku…

Wyniki

Etykieta

Nazwa

Typ

Opis

Warstwa wynikowa

OUTPUT

[raster]

Raster wyjściowy

Kod pythona

ID algorytmu: native: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.

24.1.18.4. Fill NoData cells

Resets the NoData values in the input raster to a chosen value, resulting in raster dataset with no NoData pixels.

The algorithm respects the input raster data type, e.g. a floating point fill value will be truncated when applied to an integer raster.

../../../../_images/fill_nodata.png

Rys. 24.39 Filling NoData values (in grey) of a raster

Parametry

Parametry podstawowe

Etykieta

Nazwa

Typ

Opis

Raster wejściowy

INPUT

[raster]

The raster to process.

Band number

BAND

[raster band]

Domyślnie: 1

The band of the raster

Fill value

FILL_VALUE

[numeric: double]

Domyślnie: 1.0

Set the value to use for the NoData pixels

Raster wyjściowy

OUTPUT

[raster]

Domyślnie: [Zapisz do pliku tymczasowego]

Specification of the output raster. One of:

  • Zapisz do pliku tymczasowego

  • Zapisz do pliku…

Parametry zaawansowane

Etykieta

Nazwa

Typ

Opis

Opcje generowania

Opcjonalne

CREATE_OPTIONS

[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 (|).

Wyniki

Etykieta

Nazwa

Typ

Opis

Raster wyjściowy

OUTPUT

[raster]

The output raster layer with filled data cells.

Kod pythona

ID algorytmu: native:fillnodata

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.1.18.5. Generate XYZ tiles (Directory)

Generates raster “XYZ” tiles using the current QGIS project as individual images to a directory structure.

Optionally, a Leaflet HTML output file using the generated tiles as a map layer could be created.

Parametry

Parametry podstawowe

Etykieta

Nazwa

Typ

Opis

Extent (xmin, xmax, ymin, ymax)

EXTENT

[zasięg]

Specify the extent of the tiles. It will internally be extended to a multiple of the tile size.

Available methods are:

  • Calculate from layer…: uses extent of a layer loaded in the current project

  • Calculate from layout map…: uses extent of a layout map item in the active project

  • Calculate from bookmark…: uses extent of a saved bookmark

  • Use map canvas extent

  • Draw on canvas: click and drag a rectangle delimiting the area to take into account

  • Enter the coordinates as xmin, xmax, ymin, ymax

Minimum zoom

ZOOM_MIN

[numeric: integer]

Domyślnie: 12

Minimum 0, maximum 25.

Maximum zoom

ZOOM_MAX

[numeric: integer]

Domyślnie: 12

Minimum 0, maximum 25.

DPI

DPI

[numeric: integer]

Domyślnie: 96

Minimum 48, maximum 600.

Background color

Opcjonalne

BACKGROUND_COLOR

[color]

Default: QColor(0, 0, 0, 0)

Choose the background color for the tiles

Włącz antyaliasing

ANTIALIAS

[wartość logiczna]

Domyślnie: True

Determines if antialiasing should be enabled

Tile format

TILE_FORMAT

[wyliczenie]

Domyślnie: 0

Jeden z:

  • 0 — PNG

  • 1 — JPG

Jakość (tylko dla JPG)

Opcjonalne

QUALITY

[numeric: integer]

Domyślnie: 75

Minimum 1, maksimum 100.

Metatile size

Opcjonalne

METATILESIZE

[numeric: integer]

Domyślnie: 4

Specify a custom metatile size when generating XYZ tiles. Larger values may speed up the rendering of tiles and provide better labelling (fewer gaps without labels) at the expense of using more memory. Minimum 1, maximum 20.

Tile width

Opcjonalne

TILE_WIDTH

[numeric: integer]

Domyślnie: 256

Minimum 1, maksimum 4096.

Wysokość kafla

Opcjonalne

TILE_HEIGHT

[numeric: integer]

Domyślnie: 256

Minimum 1, maksimum 4096.

Use inverted tile Y axis (TMS conventions)

TMS_CONVENTION

[wartość logiczna]

Domyślnie: False

Katalog wynikowy

OUTPUT_DIRECTORY

[folder]

Domyślnie: [Zapisz do katalogu tymczasowego]

Specification of the output directory (for the tiles). One of:

  • Pomiń wyjście

  • Zapisz do katalogu tymczasowego

  • Zapisz w katalogu

Wyjście html (Leaflet)

Opcjonalne

OUTPUT_HTML

[html]

Domyślnie: [Zapisz do pliku tymczasowego]

Specification of the output HTML file. One of:

  • Pomiń wyjście

  • Zapisz do pliku tymczasowego

  • Zapisz do pliku…

Parametry zaawansowane

Etykieta

Nazwa

Typ

Opis

Tytuł wyjścia HTML Leaflet

Opcjonalne

HTML_TITLE

[ciąg tekstowy]

Domyślnie: Nie ustawiono

HTML <title>-tag used for the Leaflet HTML output file.

Leaflet HTML output attribution

Opcjonalne

HTML_ATTRIBUTION

[ciąg tekstowy]

Domyślnie: Nie ustawiono

Custom map attribution used for the Leaflet HTML output file. HTML links are possible.

Include OpenStreetMap basemap in Leaflet HTML output

HTML_OSM

[wartość logiczna]

Domyślnie: False

An OpenStreetMap basemap layer (source: https://tile.openstreetmap.org) is included in the Leaflet HTML output file. Proper map attribution is added automatically.

Wyniki

Etykieta

Nazwa

Typ

Opis

Katalog wynikowy

OUTPUT_DIRECTORY

[folder]

Katalog wynikowy (na kafle)

Wyjście html (Leaflet)

OUTPUT_HTML

[html]

Plik wynikowy HTML (Leaflet)

Kod pythona

**ID algorytmu*: native:tilesxyzdirectory

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.1.18.6. Generate XYZ tiles (MBTiles)

Generates raster “XYZ” tiles using the current QGIS project as a single file in the “MBTiles” format.

Parametry

Etykieta

Nazwa

Typ

Opis

Extent (xmin, xmax, ymin, ymax)

EXTENT

[zasięg]

Specify the extent of the tiles. It will internally be extended to a multiple of the tile size.

Available methods are:

  • Calculate from layer…: uses extent of a layer loaded in the current project

  • Calculate from layout map…: uses extent of a layout map item in the active project

  • Calculate from bookmark…: uses extent of a saved bookmark

  • Use map canvas extent

  • Draw on canvas: click and drag a rectangle delimiting the area to take into account

  • Enter the coordinates as xmin, xmax, ymin, ymax

Minimum zoom

ZOOM_MIN

[numeric: integer]

Domyślnie: 12

Minimum 0, maximum 25.

Maximum zoom

ZOOM_MAX

[numeric: integer]

Domyślnie: 12

Minimum 0, maximum 25.

DPI

DPI

[numeric: integer]

Domyślnie: 96

Minimum 48, maximum 600.

Background color

Opcjonalne

BACKGROUND_COLOR

[color]

Default: QColor(0, 0, 0, 0)

Choose the background color for the tiles

Włącz antyaliasing

ANTIALIAS

[wartość logiczna]

Domyślnie: True

Determines if antialiasing should be enabled

Tile format

TILE_FORMAT

[wyliczenie]

Domyślnie: 0

Jeden z:

  • 0 — PNG

  • 1 — JPG

Jakość (tylko dla JPG)

Opcjonalne

QUALITY

[numeric: integer]

Domyślnie: 75

Minimum 1, maksimum 100.

Metatile size

Opcjonalne

METATILESIZE

[numeric: integer]

Domyślnie: 4

Specify a custom metatile size when generating XYZ tiles. Larger values may speed up the rendering of tiles and provide better labelling (fewer gaps without labels) at the expense of using more memory. Minimum 1, maximum 20.

Output file (for MBTiles)

OUTPUT_FILE

[plik]

Domyślnie: [Zapisz do pliku tymczasowego]

Specification of the output file. One of:

  • Pomiń wyjście

  • Zapisz do pliku tymczasowego

  • Zapisz do pliku…

Wyniki

Etykieta

Nazwa

Typ

Opis

Output file (for MBTiles)

OUTPUT_FILE

[plik]

Plik wynikowy.

Kod pythona

ID algorytmu: native:tilesxyzmbtiles

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.