27.1.7. 网孔

27.1.7.1. Export contours

Creates contours as a vector layer from a mesh scalar dataset.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to export data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Dataset time

DATASET_TIME

[datetime]

The time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Increment between contour levels

可选

INCREMENT

[数字]

Default: Not set

Interval between generated levels.

Minimum contour level

可选

MINIMUM

[数字]

Default: Not set

Starting level values of contours.

Maximum contour level

可选

MAXIMUM

[数字]

Default: Not set

Maximum values of contours, i.e. no generated levels will be greater than this value.

List of contours level

可选

CONTOUR_LEVEL_LIST

[数字]

Default: Not set

List of wanted levels of contours (separated by commas). If filled, the increment, minimum, and maximum fields will not be considered.

Output coordinate system

可选

CRS_OUTPUT

[crs]

Coordinate Reference System to assign to the output

Exported contour lines

OUTPUT_LINES

[vector: line]

Default: [Create temporary layer]

Specify the output line layer representing the contours of the mesh layer. One of:

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • 保存到文件…

  • Save to Geopackage…

  • Save to Database Table…

文件编码也可以在此更改。

Exported contour polygons

OUTPUT_POLYGONS

[vector: polygon]

Default: [Create temporary layer]

Specify the output polygon layer representing the contours of the mesh layer. One of:

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • 保存到文件…

  • Save to Geopackage…

  • Save to Database Table…

文件编码也可以在此更改。

输出

标注

名称

类型

描述

Exported contour lines

OUTPUT_LINES

[vector: line]

Line layer representing the contours of the mesh layer.

Exported contour polygons

OUTPUT_POLYGONS

[vector: polygon]

Polygon layer representing the contours of the mesh layer.

Python代码

Algorithm ID: native:meshcontours

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

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

27.1.7.2. Export cross section dataset values on lines from mesh

Extracts a mesh dataset's values from lines contained in a vector layer.

Each line is discretized with a resolution distance parameter for extraction of values on its vertices.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to export data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Dataset time

DATASET_TIME

[datetime]

The time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Lines for data export

INPUT_LINES

[vector: line]

Lines where the data will be extracted from the dataset mesh

Line segmentation resolution

RESOLUTION

[数字]

Default: 10.0

The distance between points on the lines where the data will be extracted from the dataset mesh.

Digits count for dataset value

DATASET_DIGITS

[数字]

Default: 2

Number of digits to round dataset values

Exported data CSV file

OUTPUT

[file]

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

Specification of the output file. One of:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Exported data CSV file

OUTPUT

[file]

Python代码

Algorithm ID: native:meshexportcrosssection

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

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

27.1.7.3. Export mesh edges

Exports a mesh layer's edges to a line vector layer, with the dataset values on edges as attribute values.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to export data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Dataset time

DATASET_TIME

[datetime]

The time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Output coordinate system

可选

CRS_OUTPUT

[crs]

Coordinate Reference System to assign to the output

Export vector option

VECTOR_OPTION

[enumeration]

Coordinate type of vector value exportation.

  • 0 --- Cartesian (x,y)

  • 1 --- Polar (magnitude, degree)

  • 2 --- Cartesian and polar

Output vector layer

OUTPUT

[vector: line]

Default: [Create temporary layer]

Specification of the output file. One of:

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • 保存到文件…

  • Save to Geopackage…

  • Save to Database Table…

文件编码也可以在此更改。

输出

标注

名称

类型

描述

Output vector layer

OUTPUT

[vector: line]

Output vector line layer containing the edges of the input mesh layer with associated dataset values

Python代码

Algorithm ID: native:exportmeshedges

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

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

27.1.7.4. Export mesh faces

Exports a mesh layer's faces to a polygon vector layer, with the dataset values on faces as attribute values.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to export data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Dataset time

DATASET_TIME

[datetime]

The time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Output coordinate system

可选

CRS_OUTPUT

[crs]

Coordinate Reference System to assign to the output

Export vector option

VECTOR_OPTION

[enumeration]

Coordinate type of vector value exportation.

  • 0 --- Cartesian (x,y)

  • 1 --- Polar (magnitude, degree)

  • 2 --- Cartesian and polar

Output vector layer

OUTPUT

[vector: polygon]

Default: [Create temporary layer]

Specification of the output file. One of:

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • 保存到文件…

  • Save to Geopackage…

  • Save to Database Table…

文件编码也可以在此更改。

输出

标注

名称

类型

描述

Output vector layer

OUTPUT

[vector: polygon]

Output vector polygon layer containing the faces of the input mesh layer with associated dataset values

Python代码

Algorithm ID: native:exportmeshfaces

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

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

27.1.7.5. Export mesh on grid

Exports a mesh layer's dataset values to a gridded point vector layer, with the dataset values on this point as attribute values.

For data on volume (3D stacked dataset values), the exported dataset values are averaged on faces using the method defined in the mesh layer properties (default is Multi level averaging method). 1D meshes are not supported.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to export data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Dataset time

DATASET_TIME

[datetime]

The time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Extent

可选

EXTENT

[范围]

Specify the spatial extent on which to process the data.

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

Grid spacing

可选

GRID_SPACING

[数字]

Default: 10.0

Spacing between the sample points to use

Output coordinate system

可选

CRS_OUTPUT

[crs]

Coordinate Reference System to assign to the output

Export vector option

VECTOR_OPTION

[enumeration]

Coordinate type of vector value exportation.

  • 0 --- Cartesian (x,y)

  • 1 --- Polar (magnitude, degree)

  • 2 --- Cartesian and polar

Output vector layer

OUTPUT

[vector: point]

Default: [Create temporary layer]

Specification of the output file. One of:

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • 保存到文件…

  • Save to Geopackage…

  • Save to Database Table…

文件编码也可以在此更改。

输出

标注

名称

类型

描述

Output vector layer

OUTPUT

[vector: point]

Output vector point layer with dataset values computed from the overlaid face.

Python代码

Algorithm ID: native:exportmeshongrid

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

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

27.1.7.6. Export mesh vertices

Exports a mesh layer's vertices to a point vector layer, with the dataset values on vertices as attribute values.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to export data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Dataset time

DATASET_TIME

[datetime]

The time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Output coordinate system

可选

CRS_OUTPUT

[crs]

Coordinate Reference System to assign to the output

Export vector option

VECTOR_OPTION

[enumeration]

Coordinate type of vector value exportation.

  • 0 --- Cartesian (x,y)

  • 1 --- Polar (magnitude, degree)

  • 2 --- Cartesian and polar

Output vector layer

OUTPUT

[vector: point]

Default: [Create temporary layer]

Specification of the output file. One of:

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • 保存到文件…

  • Save to Geopackage…

  • Save to Database Table…

文件编码也可以在此更改。

输出

标注

名称

类型

描述

Output vector layer

OUTPUT

[vector: point]

Output vector point layer containing the vertices of the input mesh layer with associated dataset values

Python代码

Algorithm ID: native:exportmeshvertices

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

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

27.1.7.7. Export time series values from points of a mesh dataset

Extracts a mesh dataset's time series values from points contained in a vector layer.

If the time step is kept to its default value (0 hours), the time step used is the one of the two first datasets of the first selected dataset group.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to extract data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Starting time

STARTING_TIME

[datetime]

The start of the time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Finishing time

FINISHING_TIME

[datetime]

The end of the time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Time step (hours)

可选

TIME_STEP

[数字]

Default: 0

Time between two consecutive steps to extract. Keep 0 to use time step of the first selected dataset group.

Points for data export

INPUT_POINTS

[vector: point]

Vector layer containing points where the data will be extracted from the dataset mesh

Digits count for coordinates

COORDINATES_DIGITS

[数字]

Number of digits to round coordinate values

Default: 2

Digits count for dataset value

DATASET_DIGITS

[数字]

Default: 2

Number of digits to round dataset values

Exported data CSV file

OUTPUT

[file]

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

Specification of the output file. One of:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Exported data CSV file

OUTPUT

[file]

.CSV file containing the mesh dataset time series values at the overlaying point features

Python代码

Algorithm ID: native:meshexporttimeseries

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

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

27.1.7.8. Rasterize mesh dataset

Creates a raster layer from a mesh dataset.

For data on volume (3D stacked dataset values), the exported dataset values are averaged on faces using the method defined in the mesh layer properties (default is Multi level averaging method). 1D meshes are not supported.

参数

标注

名称

类型

描述

Input mesh layer

INPUT

[mesh]

The mesh layer to export data from

Dataset groups

DATASET_GROUPS

[layer] [list]

The dataset groups

Dataset time

DATASET_TIME

[datetime]

The time range to take into account

  • 0 --- Current canvas time

  • 1 --- Defined date/time

  • 2 --- Dataset group time step

Extent

可选

EXTENT

[范围]

Specify the spatial extent on which to process the data.

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

Pixel size

PIXEL_SIZE

[数字]

默认值:1.0

Pixel size of the output raster layer.

Output coordinate system

可选

CRS_OUTPUT

[crs]

Coordinate Reference System to assign to the output

Output raster layer

OUTPUT

[栅格]

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

Specification of the output file. One of:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Output raster layer

OUTPUT

[栅格]

Output raster layer with dataset values computed from the mesh layer.

Python代码

Algorithm ID: native:meshrasterize

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

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

27.1.7.9. TIN mesh creation

Creates a TIN mesh layer from vector layers. The TIN mesh is created using a Delaunay triangulation.

参数

标注

名称

类型

描述

Input layers

SOURCE_DATA

[vector: any] [list]

Vector layers to combine to generate the mesh layer

Vector layer

GUI ONLY

[vector: any] [list]

A selector for the vector layers to combine to generate the mesh layer

Value on vertex

GUI ONLY

[tablefield: any]

A selector of the field to use from the selected layer. Each vertex is assigned the corresponding value of its original feature.

Use Z-coordinate for value on vertex

GUI ONLY

[boolean]

Default: False

If checked, the Z value of vector layer points or polygons/lines vertices will be used to assign the Z value of the vertex mesh layer. Only available if the input layers are 3D.

Output format

MESH_FORMAT

[enumeration]

Default: 2DM

Output format of the generated layer

  • 0 --- 2DM

  • 1 --- SELAFIN

  • 2 --- PLY

  • 3 --- Ugrid

Output coordinate system

可选

CRS_OUTPUT

[crs]

Coordinate Reference System to assign to the output

Output file

OUTPUT_MESH

[mesh]

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

Specification of the output file. One of:

  • 保存到临时文件

  • 保存到文件…

输出

标注

名称

类型

描述

Output file

OUTPUT_MESH

[mesh]

Output mesh layer with dataset values computed from the vector layers.

Python代码

Algorithm ID: native:tinmeshcreation

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

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