Svarbu

Vertimas yra bendruomenės pastangos, prie kurių jūs galite prisijungti. Šis puslapis šiuo metu išverstas 48.75%.

24.2.3. Raster extraction

24.2.3.1. Clip raster by extent

Clips any GDAL-supported raster file to a given extent.

This algorithm is derived from the GDAL translate utility.

Default menu: Raster ► Extraction

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[raster]

The input raster

Clipping extent

EXTENT

[extent]

Extent that should be used for the output raster. Only pixels within the specified bounding box will be included in the output.

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

Override the projection for the output file

OVERCRS

[boolean]

Numatytas: ne

If checked, the output file is assigned the input layer CRS.

Assign a specified NoData value to output bands

Pasirinktinis

NODATA

[numeric: double]

Default: Not set

Defines a value that should be inserted for the NoData values in the output raster

Clipped (extent)

OUTPUT

[raster]

Numatytas: [Įrašyti į laikiną failą]

Specification of the output raster layer. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Additional creation options

Pasirinktinis

OPTIONS

[string]

Default: ‚‘

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

[sąrašas]

Numatytas: 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)

Additional command-line parameters

Pasirinktinis

EXTRA

[string]

Default: Not set

Add extra GDAL command line options

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Clipped (extent)

OUTPUT

[raster]

Output raster layer clipped by the given extent

Pythono kodas

Algorithm ID: gdal:cliprasterbyextent

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.2.3.2. Clip raster by mask layer

Clips any GDAL-supported raster by a vector mask layer.

This algorithm is derived from the GDAL warp utility.

Default menu: Raster ► Extraction

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[raster]

The input raster

Mask layer

MASK

[vektorius: poligonas]

Vector mask for clipping the raster

Source CRS

SOURCE_CRS

[crs]

Set the coordinate reference to use for the input raster

Target CRS

TARGET_CRS

[crs]

Set the coordinate reference to use for the mask layer

Target extent

Pasirinktinis

TARGET_EXTENT

[extent]

Extent of the output file to be created

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

Assign a specified NoData value to output bands

Pasirinktinis

NODATA

[numeric: double]

Default: Not set

Defines a value that should be inserted for the NoData values in the output raster

Create an output alpha band

ALPHA_BAND

[boolean]

Numatytas: ne

Creates an alpha band for the result. The alpha band then includes the transparency values of the pixels.

Match the extent of the clipped raster to the extent of the mask layer

CROP_TO_CUTLINE

[boolean]

Numatytas: Taip

Applies the vector layer extent to the output raster if checked.

Keep resolution of input raster

KEEP_RESOLUTION

[boolean]

Numatytas: ne

The resolution of the output raster will not be changed

Set output file resolution

SET_RESOLUTION

[boolean]

Numatytas: ne

Shall the output resolution (cell size) be specified

X Resolution to output bands

Pasirinktinis

X_RESOLUTION

[numeric: double]

Default: Not set

The width of the cells in the output raster

Y Resolution to output band

Pasirinktinis

Y_RESOLUTION

[numeric: double]

Default: Not set

The height of the cells in the output raster

Use multithreaded warping implementation

MULTITHREADING

[boolean]

Numatytas: ne

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

Clipped (mask)

OUTPUT

[raster]

Numatytas: [Įrašyti į laikiną failą]

Specification of the output raster layer. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Additional creation options

Pasirinktinis

OPTIONS

[string]

Default: ‚‘

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

[sąrašas]

Numatytas: 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)

Additional command-line parameters

Pasirinktinis

EXTRA

[string]

Default: Not set

Add extra GDAL command line options

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Clipped (mask)

OUTPUT

[raster]

Output raster layer clipped by the vector layer

Pythono kodas

Algorithm ID: gdal:cliprasterbymasklayer

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.2.3.3. Contour

Extracts contour lines from any GDAL-supported elevation raster.

This algorithm is derived from the GDAL contour utility.

Default menu: Raster ► Extraction

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[raster]

Input raster

Band number

BAND

[raster band]

Default: 1

Raster band to create the contours from

Interval between contour lines

INTERVAL

[numeric: double]

Numatytas: 10.0

Defines the interval between the contour lines in the given units of the elevation raster (minimum value 0)

Attribute name (if not set, no elevation attribute is attached)

Pasirinktinis

FIELD_NAME

[string]

Default: ‚ELEV‘

Provides a name for the attribute in which to put the elevation.

Offset from zero relative to which to interpret intervals

Pasirinktinis

OFFSET

[numeric: double]

Default: 0.0

Contours

OUTPUT

[vektorius: linija]

Numatytas: [Įrašyti į laikiną failą]

Specification of the output vector layer. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Produce 3D vector

CREATE_3D

[boolean]

Numatytas: ne

Forces production of 3D vectors instead of 2D. Includes elevation at every vertex.

Treat all raster values as valid

IGNORE_NODATA

[boolean]

Numatytas: ne

Ignores any NoData values in the dataset.

Input pixel value to treat as „NoData“

Pasirinktinis

NODATA

[numeric: double]

Default: Not set

Defines a value that should be inserted for the NoData values in the output raster

Additional command-line parameters

Pasirinktinis

EXTRA

[string]

Default: Not set

Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Contours

OUTPUT

[vektorius: linija]

Output vector layer with contour lines

Pythono kodas

Algorithm ID: gdal:contour

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.

24.2.3.4. Contour Polygons

Extracts contour polygons from any GDAL-supported elevation raster.

This algorithm is derived from the GDAL contour utility.

Parametrai

Baziniai parametrai

Užrašas

Pavadinimas

Tipas

Aprašymas

Įvesties sluoksnis

INPUT

[raster]

Input raster

Band number

BAND

[raster band]

Default: 1

Raster band to create the contours from

Interval between contour lines

INTERVAL

[numeric: double]

Numatytas: 10.0

Defines the interval between the contour lines in the given units of the elevation raster (minimum value 0)

Offset from zero relative to which to interpret intervals

Pasirinktinis

OFFSET

[numeric: double]

Default: 0.0

Attribute name for minimum elevation of contour polygon

Pasirinktinis

FIELD_NAME_MIN

[string]

Default: ‚ELEV_MIN‘

Provides a name for the attribute in which to put the minimum elevation of contour polygon. If not provided no minimum elevation attribute is attached.

Attribute name for maximum elevation of contour polygon

Pasirinktinis

FIELD_NAME_MAX

[string]

Default: ‚ELEV_MAX‘

Provides a name for the attribute in which to put the maximum elevation of contour polygon. If not provided no maximum elevation attribute is attached.

Contours

OUTPUT

[vektorius: poligonas]

Numatytas: [Įrašyti į laikiną failą]

Specification of the output vector layer. One of:

  • Įrašyti į laikiną failą

  • Įrašyti į failą…

Advanced parameters

Užrašas

Pavadinimas

Tipas

Aprašymas

Produce 3D vector

CREATE_3D

[boolean]

Numatytas: ne

Forces production of 3D vectors instead of 2D. Includes elevation at every vertex.

Treat all raster values as valid

IGNORE_NODATA

[boolean]

Numatytas: ne

Ignores any NoData values in the dataset.

Input pixel value to treat as „NoData“

Pasirinktinis

NODATA

[numeric: double]

Default: Not set

Defines a value that should be inserted for the NoData values in the output raster

Additional command-line parameters

Pasirinktinis

EXTRA

[string]

Default: Not set

Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation.

Išvestys

Užrašas

Pavadinimas

Tipas

Aprašymas

Contours

OUTPUT

[vektorius: poligonas]

Output vector layer with contour polygons

Pythono kodas

Algorithm ID: gdal:contour_polygon

import processing
processing.run("algorithm_id", {parameter_dictionary})

algoritmo id rodomas, kai užvedate pelę virš algoritmo apdorojimo įrankinėje. parametrų žodynas teikia parametrų pavadinimus ir reikšmes. Daugiau informacijos apie tai, kaip vykdyti apdorojimo algoritmus Pythono konsolėje rasite skyriuje Using processing algorithms from the console.