25.1.6. Mesh¶
25.1.6.1. Export contours¶
Creates contours as a vector layer from a mesh scalar dataset.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to export data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Dataset time |
|
[datetime] |
The time range to take into account
|
Increment between contour levels Optional |
|
[number] Default: Not set |
Interval between generated levels. |
Minimum contour level Optional |
|
[number] Default: Not set |
Starting level values of contours. |
Maximum contour level Optional |
|
[number] Default: Not set |
Maximum values of contours, i.e. no generated levels will be greater than this value. |
List of contours level Optional |
|
[number] 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 Optional |
|
[crs] |
Coordinate Reference System to assign to the output |
Exported contour lines |
|
[vector: line] Default: |
Specify the output line layer representing the contours of the mesh layer. One of:
The file encoding can also be changed here. |
Exported contour polygons |
|
[vector: polygon] Default: |
Specify the output polygon layer representing the contours of the mesh layer. One of:
The file encoding can also be changed here. |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Exported contour lines |
|
[vector: line] |
Line layer representing the contours of the mesh layer. |
Exported contour polygons |
|
[vector: polygon] |
Polygon layer representing the contours of the mesh layer. |
Python code¶
Algorithm ID: native:meshcontours
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.
25.1.6.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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to export data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Dataset time |
|
[datetime] |
The time range to take into account
|
Lines for data export |
|
[vector: line] |
Lines where the data will be extracted from the dataset mesh |
Line segmentation resolution |
|
[number] 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 |
|
[number] Default: 2 |
Number of digits to round dataset values |
Exported data CSV file |
|
[file] Default: |
Specification of the output file. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Exported data CSV file |
|
[file] |
Python code¶
Algorithm ID: native:meshexportcrosssection
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.
25.1.6.3. Export mesh edges¶
Exports a mesh layer’s edges to a line vector layer, with the dataset values on edges as attribute values.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to export data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Dataset time |
|
[datetime] |
The time range to take into account
|
Output coordinate system Optional |
|
[crs] |
Coordinate Reference System to assign to the output |
Export vector option |
|
[enumeration] |
Coordinate type of vector value exportation.
|
Output vector layer |
|
[vector: line] Default: |
Specification of the output file. One of:
The file encoding can also be changed here. |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Output vector layer |
|
[vector: line] |
Output vector line layer containing the edges of the input mesh layer with associated dataset values |
Python code¶
Algorithm ID: native:exportmeshedges
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.
25.1.6.4. Export mesh faces¶
Exports a mesh layer’s faces to a polygon vector layer, with the dataset values on faces as attribute values.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to export data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Dataset time |
|
[datetime] |
The time range to take into account
|
Output coordinate system Optional |
|
[crs] |
Coordinate Reference System to assign to the output |
Export vector option |
|
[enumeration] |
Coordinate type of vector value exportation.
|
Output vector layer |
|
[vector: polygon] Default: |
Specification of the output file. One of:
The file encoding can also be changed here. |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Output vector layer |
|
[vector: polygon] |
Output vector polygon layer containing the faces of the input mesh layer with associated dataset values |
Python code¶
Algorithm ID: native:exportmeshfaces
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.
25.1.6.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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to export data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Dataset time |
|
[datetime] |
The time range to take into account
|
Extent Optional |
|
[extent] |
Specify the spatial extent on which to process the data. Available methods are:
|
Grid spacing Optional |
|
[number] Default: 10.0 |
Spacing between the sample points to use |
Output coordinate system Optional |
|
[crs] |
Coordinate Reference System to assign to the output |
Export vector option |
|
[enumeration] |
Coordinate type of vector value exportation.
|
Output vector layer |
|
[vector: point] Default: |
Specification of the output file. One of:
The file encoding can also be changed here. |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Output vector layer |
|
[vector: point] |
Output vector point layer with dataset values computed from the overlaid face. |
Python code¶
Algorithm ID: native:exportmeshongrid
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.
25.1.6.6. Export mesh vertices¶
Exports a mesh layer’s vertices to a point vector layer, with the dataset values on vertices as attribute values.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to export data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Dataset time |
|
[datetime] |
The time range to take into account
|
Output coordinate system Optional |
|
[crs] |
Coordinate Reference System to assign to the output |
Export vector option |
|
[enumeration] |
Coordinate type of vector value exportation.
|
Output vector layer |
|
[vector: point] Default: |
Specification of the output file. One of:
The file encoding can also be changed here. |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Output vector layer |
|
[vector: point] |
Output vector point layer containing the vertices of the input mesh layer with associated dataset values |
Python code¶
Algorithm ID: native:exportmeshvertices
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.
25.1.6.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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to extract data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Starting time |
|
[datetime] |
The start of the time range to take into account
|
Finishing time |
|
[datetime] |
The end of the time range to take into account
|
Time step (hours) Optional |
|
[number] Default: 0 |
Time between two consecutive steps to extract.
Keep |
Points for data export |
|
[vector: point] |
Vector layer containing points where the data will be extracted from the dataset mesh |
Digits count for coordinates |
|
[number] |
Number of digits to round coordinate values Default: 2 |
Digits count for dataset value |
|
[number] Default: 2 |
Number of digits to round dataset values |
Exported data CSV file |
|
[file] Default: |
Specification of the output file. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Exported data CSV file |
|
[file] |
|
Python code¶
Algorithm ID: native:meshexporttimeseries
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.
25.1.6.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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input mesh layer |
|
[mesh] |
The mesh layer to export data from |
Dataset groups |
|
[layer][list] |
The dataset groups |
Dataset time |
|
[datetime] |
The time range to take into account
|
Extent Optional |
|
[extent] |
Specify the spatial extent on which to process the data. Available methods are:
|
Pixel size |
|
[number] Default: 1.0 |
Pixel size of the output raster layer. |
Output coordinate system Optional |
|
[crs] |
Coordinate Reference System to assign to the output |
Output raster layer |
|
[raster] Default: |
Specification of the output file. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Output raster layer |
|
[raster] |
Output raster layer with dataset values computed from the mesh layer. |
Python code¶
Algorithm ID: native:meshrasterize
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.
25.1.6.9. TIN mesh creation¶
Creates a TIN mesh layer from vector layers. The TIN mesh is created using a Delaunay triangulation.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layers |
|
[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 |
|
[enumeration] Default: 2DM |
Output format of the generated layer
|
Output coordinate system Optional |
|
[crs] |
Coordinate Reference System to assign to the output |
Output file |
|
[mesh] Default: |
Specification of the output file. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Output file |
|
[mesh] |
Output mesh layer with dataset values computed from the vector layers. |
Python code¶
Algorithm ID: native:tinmeshcreation
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.