重要

Translation is a community effort you can join. This page is currently translated at 63.51%.

28.1.17. 栅格地形分析

28.1.17.1. 坡向

在数字地形模型中计算坡向,最终的坡向栅格图层包含了从0到360的数值去代表斜坡的倾向。坡向以正北为 (0°),顺时针方向递增。

../../../../_images/aspect.png

图 28.30 坡向值

下图展示了用色带重分类的坡向图层

../../../../_images/aspect_2.png

图 28.31 重分类后的坡向图层

参数

标注

名称

类型

描述

高程图层

INPUT

[栅格]

数字地形模型的栅格图层

Z 因子

Z_FACTOR

[数字]

默认值:1.0

纵向拉伸。当z单位与x,y单位不同时,例如米与英尺,该参数十分有用。你可以通过这个参数去进行调整。该参数默认值为1(没有拉伸)。

坡向

OUTPUT

[栅格]

默认: [保存到临时文件]

请指定输出的坡向栅格图层。其中一个为:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

坡向

OUTPUT

[栅格]

输出的坡向栅格图层

Python代码

算法 ID: qgis:坡向

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

当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。

28.1.17.2. DTM filter (slope-based)

NEW in 3.34

Can be used to filter a digital elevation model in order to classify its cells into ground and object (non-ground) cells.

The tool uses concepts as described by Vosselman (2000) and is based on the assumption that a large height difference between two nearby cells is unlikely to be caused by a steep slope in the terrain. The probability that the higher cell might be non-ground increases when the distance between the two cells decreases. Therefore the filter defines a maximum height difference (dz_max) between two cells as a function of the distance (d) between the cells (dz_max( d ) = d). A cell is classified as terrain if there is no cell within the kernel radius to which the height difference is larger than the allowed maximum height difference at the distance between these two cells.

The approximate terrain slope (s) parameter is used to modify the filter function to match the overall slope in the study area (dz_max( d ) = d * s). A 5 % confidence interval (ci = 1.65 * sqrt( 2 * stddev )) may be used to modify the filter function even further by either relaxing (dz_max( d ) = d * s + ci) or amplifying (dz_max( d ) = d * s - ci) the filter criterium.

References: Vosselman, G. (2000): Slope based filtering of laser altimetry data. IAPRS, Vol. XXXIII, Part B3, Amsterdam, The Netherlands, 935-942

参见

This tool is a port of the SAGA DTM Filter (slope-based)

参数

标注

名称

类型

描述

输入图层

INPUT

[栅格]

数字地形模型的栅格图层

Band number

BAND

[number] [list]

The band of the DEM to consider

Kernel radius (pixels)

RADIUS

[数字]

Default: 5

The radius of the filter kernel (in pixels). Must be large enough to reach ground cells next to non-ground objects.

Terrain slope (%, pixel size/vertical units)

TERRAIN_SLOPE

[数字]

Default: 30

The approximate terrain slope in %. The terrain slope must be adjusted to account for the ratio of height units vs raster pixel dimensions. Used to relax the filter criterium in steeper terrain.

Filter modification

FILTER_MODIFICATION

[list]

Default: 0

Choose whether to apply the filter kernel without modification or to use a confidence interval to relax or amplify the height criterium.

  • 0 - None

  • 1 - Relax filter

  • 2 - Amplify

Standard deviation

STANDARD_DEVIATION

[数字]

Default: 0.1

The standard deviation used to calculate a 5% confidence interval applied to the height threshold.

Output layer (ground)

可选

OUTPUT_GROUND

[栅格]

默认: [保存到临时文件]

Specify the filtered DEM containing only cells classified as ground. One of:

  • Skip Output

  • 保存到临时文件

  • 保存到文件…

Output layer (non-ground objects)

可选

OUTPUT_NONGROUND

[栅格]

Default: [Skip output]

Specify the non-ground objects removed by the filter. One of:

  • Skip Output

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Output layer (ground)

OUTPUT_GROUND

[栅格]

The filtered DEM containing only cells classified as ground.

Output layer (non-ground objects)

OUTPUT_NONGROUND

[栅格]

The non-ground objects removed by the filter.

Python代码

Algorithm ID: native:dtmslopebasedfilter

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

当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。

28.1.17.3. 山体阴影

基于输入的数字地形模型计算山体阴影的栅格图层

图层的晕渲是根据太阳位置进行计算的:你可以选择更改太阳投射的水平角度(方位角)和垂直角度(太阳高度)。

../../../../_images/azimuth.png

图 28.32 方位角与垂向角度

山体阴影图层的数值范围覆盖从0(完全遮蔽)到255(完全暴露)。山体阴影通常用于更好地理解区域中的地势。

../../../../_images/hillshade1.png

图 28.33 山体阴影图层一般设定为300°的方位角以及45°的垂向角度。

值得注意的是可以将山体阴影图层设定某个透明度值后重叠在高程栅格之上。

../../../../_images/hillshade_2.png

图 28.34 重叠是山体阴影叠上高程图层

参数

标注

名称

类型

描述

高程图层

INPUT

[栅格]

数字地形模型的栅格图层

Z 因子

Z_FACTOR

[数字]

默认值:1.0

纵向拉伸。当z单位与x,y单位不同时,例如米与英尺,该参数十分有用。你可以通过这个参数去进行调整。随着该参数数值的增加,最终的结果会更加夸张(更加“山体化”)。该参数默认值为1(没有拉伸)

方位角(水平角度)

AZIMUTH

[数字]

默认值:300.0

Set the horizontal angle (in degrees) of the sun (clockwise direction). Range: 0 to 360. 0 is north.

仰角

V_ANGLE

[数字]

 默认: 40.0

Set the vertical angle (in degrees) of the sun, that is the height of the sun. Values can go from 0 (minimum elevation) to 90 (maximum elevation).

山体阴影

OUTPUT

[栅格]

默认: 保存到临时文件

Specify the output hillshade raster layer. One of:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

山体阴影

OUTPUT

[栅格]

The output hillshade raster layer

Python代码

Algorithm ID: qgis:hillshade

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

当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。

28.1.17.4. Hypsometric curves

Calculates hypsometric curves for an input Digital Elevation Model. Curves are produced as CSV files in an output folder specified by the user.

A hypsometric curve is a cumulative histogram of elevation values in a geographical area.

You can use hypsometric curves to detect differences in the landscape due to the geomorphology of the territory.

参数

标注

名称

类型

描述

DEM to analyze

INPUT_DEM

[栅格]

Digital Terrain Model raster layer to use for calculating altitudes

Boundary layer

BOUNDARY_LAYER

[vector: polygon]

Polygon vector layer with boundaries of areas used to calculate hypsometric curves

Step

STEP

[数字]

Default: 100.0

Vertical distance between curves

Use % of area instead of absolute value

USE_PERCENTAGE

[boolean]

Default: False

Write area percentage to “Area” field of the CSV file instead of the absolute area

Hypsometric curves

OUTPUT_DIRECTORY

[folder]

Specify the output folder for the hypsometric curves. One of:

  • Save to a Temporary Directory

  • Save to Directory

输出

标注

名称

类型

描述

Hypsometric curves

OUTPUT_DIRECTORY

[folder]

Directory containing the files with the hypsometric curves. For each feature from the input vector layer, a CSV file with area and altitude values will be created.

The file names start with histogram_, followed by layer name and feature ID.

../../../../_images/hypsometric.png

Python代码

Algorithm ID: qgis:hypsometriccurves

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

当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。

28.1.17.5. Relief

Creates a shaded relief layer from digital elevation data. You can specify the relief color manually, or you can let the algorithm choose automatically all the relief classes.

../../../../_images/relief.png

图 28.35 Relief layer

参数

标注

名称

类型

描述

高程图层

INPUT

[栅格]

数字地形模型的栅格图层

Z 因子

Z_FACTOR

[数字]

默认值:1.0

纵向拉伸。当z单位与x,y单位不同时,例如米与英尺,该参数十分有用。你可以通过这个参数去进行调整。随着该参数数值的增加,最终的结果会更加夸张(更加“山体化”)。该参数默认值为1(没有拉伸)

Generate relief classes automatically

AUTO_COLORS

[boolean]

Default: False

If you check this option the algorithm will create all the relief color classes automatically

Relief colors

可选

COLORS

[table widget]

Use the table widget if you want to choose the relief colors manually. You can add as many color classes as you want: for each class you can choose the lower and upper bound and finally by clicking on the color row you can choose the color thanks to the color widget.

../../../../_images/relief_table.png

图 28.36 Manually setting of relief color classes

The buttons in the right side panel give you the chance to: add or remove color classes, change the order of the color classes already defined, open an existing file with color classes and save the current classes as file.

Relief

OUTPUT

[栅格]

默认: [保存到临时文件]

Specify the output relief raster layer. One of:

  • 保存到临时文件

  • 保存到文件…

Frequency distribution

可选

FREQUENCY_DISTRIBUTION

[table]

Default: [Skip output]

Specify the CSV table for the output frequency distribution. One of:

  • Skip Output

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Relief

OUTPUT

[栅格]

The output relief raster layer

Frequency distribution

OUTPUT

[table]

The output frequency distribution

Python代码

Algorithm ID: qgis:relief

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

当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。

28.1.17.6. Ruggedness index

Calculates the quantitative measurement of terrain heterogeneity described by Riley et al. (1999). It is calculated for every location, by summarizing the change in elevation within the 3x3 pixel grid.

Each pixel contains the difference in elevation from a center cell and the 8 cells surrounding it.

../../../../_images/ruggedness.png

图 28.37 Ruggedness layer from low (red) to high values (green)

参数

标注

名称

类型

描述

高程图层

INPUT

[栅格]

数字地形模型的栅格图层

Z 因子

Z_FACTOR

[数字]

默认值:1.0

Vertical exaggeration. This parameter is useful when the Z units differ from the X and Y units, for example feet and meters. You can use this parameter to adjust for this. Increasing the value of this parameter will exaggerate the final result (making it look more rugged). The default is 1 (no exaggeration).

Ruggedness

OUTPUT

[栅格]

默认: [保存到临时文件]

Specify the output ruggedness raster layer. One of:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Ruggedness

OUTPUT

[栅格]

The output ruggedness raster layer

Python代码

Algorithm ID: qgis:ruggednessindex

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

当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。

28.1.17.7. 坡度

Calculates the slope from an input raster layer. The slope is the angle of inclination of the terrain and is expressed in degrees.

../../../../_images/slope3.png

图 28.38 Flat areas in red, steep areas in blue

参数

标注

名称

类型

描述

高程图层

INPUT

[栅格]

数字地形模型的栅格图层

Z 因子

Z_FACTOR

[数字]

默认值:1.0

Vertical exaggeration. This parameter is useful when the Z units differ from the X and Y units, for example feet and meters. You can use this parameter to adjust for this. Increasing the value of this parameter will exaggerate the final result (making it steeper). The default is 1 (no exaggeration).

Slope

OUTPUT

[栅格]

默认: [保存到临时文件]

Specify the output slope raster layer. One of:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Slope

OUTPUT

[栅格]

The output slope raster layer

Python代码

Algorithm ID: qgis:slope

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

当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。