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:
Parametry
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[raster] |
Input raster layer |
Desired CRS |
|
[układ współrzędnych] |
The projection (CRS) of the output layer |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Layer with projection |
|
[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:
Parametry
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Plik wejściowy |
|
[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 |
Create also .prj file |
|
[wartość logiczna] Domyślnie: False |
If this is activated a |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
World file |
|
[plik] |
Text file with extension |
ESRI Shapefile prj file |
|
[plik] |
Text file with |
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:
Parametry
Parametry podstawowe
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Warstwa wejściowa |
|
[raster] |
Input raster layer to reproject |
Source CRS Opcjonalne |
|
[układ współrzędnych] |
Defines the CRS of the input raster layer |
Target CRS Opcjonalne |
|
[układ współrzędnych] Domyślnie: |
The CRS of the output layer |
Resampling method to use |
|
[wyliczenie] Domyślnie: 0 |
Pixel value resampling method to use. Options:
|
NoData value for output bands Opcjonalne |
|
[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 |
|
[numeric: double] Domyślnie: Nie ustawiono |
Defines the output file resolution of reprojection result |
Reprojected |
|
[raster] Domyślnie: |
Specification of the 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 ( |
Output data type |
|
[wyliczenie] Domyślnie: 0 |
Defines the format of the output raster file. Options:
Available options depend on the GDAL version built with QGIS (see menu) |
Georeferenced extents of output file to be created Opcjonalne |
|
[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:
|
CRS of the target raster extent Opcjonalne |
|
[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 |
|
[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 |
|
[ciąg tekstowy] Domyślnie: Nie ustawiono |
Add extra GDAL command line options. |
Wyniki
Etykieta |
Nazwa |
Typ |
Opis |
---|---|---|---|
Reprojected |
|
[raster] Domyślnie: |
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.