Ważne

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

24.2.5. Raster projections

24.2.5.1. Assign projection

Applies a coordinate system to a raster dataset.

This algorithm is derived from the GDAL edit utility.

Default menu: Raster ► Projections

Parametry

Etykieta

Nazwa

Typ

Opis

Warstwa wejściowa

INPUT_LAYER

[raster]

Input raster layer

Desired CRS

CRS

[układ współrzędnych]

The projection (CRS) of the output layer

Wyniki

Etykieta

Nazwa

Typ

Opis

Layer with projection

OUTPUT

[raster]

The output raster layer (with the new projection information)

Kod pythona

ID algorytmu: gdal:assignprojection

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.5.2. Extract projection

Extracts the projection of a raster file and writes it into a world file with extension .wld.

This algorithm is derived from the GDAL srsinfo utility.

Default menu: Raster ► Projections

Parametry

Etykieta

Nazwa

Typ

Opis

Plik wejściowy

INPUT_LAYER

[raster]

Input raster The raster layer has to be file based, as the algorithm uses the path to the raster file as the location of the generated .wld file. Using a non-file raster layer will lead to an error.

Create also .prj file

PRJ_FILE_CREATE

[wartość logiczna]

Domyślnie: False

If this is activated a .prj file containing the projection information is also created.

Wyniki

Etykieta

Nazwa

Typ

Opis

World file

WORLD_FILE

[plik]

Text file with extension .wld containing transformation parameters for the raster file.

ESRI Shapefile prj file

PRJ_FILE

[plik]

Text file with .prj extension that describes the CRS. Will be None if Create also .prj file is False.

Kod pythona

ID algorytmu: gdal:extractprojection

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.5.3. Warp (reproject)

Reprojects a raster layer into another Coordinate Reference System (CRS). The output file resolution and the resampling method can be chosen.

This algorithm is derived from the GDAL warp utility.

Default menu: Raster ► Projections

Parametry

Parametry podstawowe

Etykieta

Nazwa

Typ

Opis

Warstwa wejściowa

INPUT

[raster]

Input raster layer to reproject

Source CRS

Opcjonalne

SOURCE_CRS

[układ współrzędnych]

Defines the CRS of the input raster layer

Target CRS

Opcjonalne

TARGET_CRS

[układ współrzędnych]

Domyślnie: EPSG:4326

The CRS of the output layer

Resampling method to use

RESAMPLING

[wyliczenie]

Domyślnie: 0

Pixel value resampling method to use. Options:

  • 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 — Pierwszy kwartyl (Q1)

  • 11 — Trzeciego kwartyla (Q3)

NoData value for output bands

Opcjonalne

NODATA

[numeric: double]

Domyślnie: Nie ustawiono

Sets NoData value for output bands. If not provided, then NoData values will be copied from the source dataset.

Output file resolution in target georeferenced units

Opcjonalne

TARGET_RESOLUTION

[numeric: double]

Domyślnie: Nie ustawiono

Defines the output file resolution of reprojection result

Reprojected

OUTPUT

[raster]

Domyślnie: [Zapisz do pliku tymczasowego]

Specification of the output raster layer. One of:

  • Zapisz do pliku tymczasowego

  • Zapisz do pliku…

Parametry zaawansowane

Etykieta

Nazwa

Typ

Opis

Additional creation options

Opcjonalne

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

Output data type

DATA_TYPE

[wyliczenie]

Domyślnie: 0

Defines the format of the output raster file. Options:

  • 0 — Use Input Layer Data Type

  • 1 — Byte (Eight bit unsigned integer (quint8))

  • 2 — Int16 (Sixteen bit signed integer (qint16))

  • 3 — UInt16 (Sixteen bit unsigned integer (quint16))

  • 4 — UInt32 (Thirty two bit unsigned integer (quint32))

  • 5 — Int32 (Thirty two bit signed integer (qint32))

  • 6 — Float32 (Thirty two bit floating point (float))

  • 7 — Float64 (Sixty four bit floating point (double))

  • 8 — CInt16 (Complex Int16)

  • 9 — CInt32 (Complex Int32)

  • 10 — CFloat32 (Complex Float32)

  • 11 — CFloat64 (Complex Float64)

  • 12 — Int8 (Eight bit signed integer (qint8))

Available options depend on the GDAL version built with QGIS (see Help ► About menu)

Georeferenced extents of output file to be created

Opcjonalne

TARGET_EXTENT

[zasięg]

Sets the georeferenced extent of the output file to be created (in the Target CRS by default. In the CRS of the target raster extent, if specified).

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

CRS of the target raster extent

Opcjonalne

TARGET_EXTENT_CRS

[układ współrzędnych]

Specifies the CRS in which to interpret the coordinates given for the extent of the output file. This must not be confused with the target CRS of the output dataset. It is instead a convenience e.g. when knowing the output coordinates in a geodetic long/lat CRS, but wanting a result in a projected coordinate system.

Use multithreaded warping implementation

MULTITHREADING

[wartość logiczna]

Domyślnie: False

Two threads will be used to process chunks of the image and perform input/output operations simultaneously. Note that the computation itself is not multithreaded.

Additional command-line parameters

Opcjonalne

EXTRA

[ciąg tekstowy]

Domyślnie: Nie ustawiono

Add extra GDAL command line options.

Wyniki

Etykieta

Nazwa

Typ

Opis

Reprojected

OUTPUT

[raster]

Domyślnie: [Zapisz do pliku tymczasowego]

Reprojected output raster layer

Kod pythona

ID algorytmu: gdal:warpreproject

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.