QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Functions
QgsMeshUtils Namespace Reference

Functions

CORE_EXPORT QgsRasterBlockexportRasterBlock (const QgsMeshLayer &layer, const QgsMeshDatasetIndex &datasetIndex, const QgsCoordinateReferenceSystem &destinationCrs, const QgsCoordinateTransformContext &transformContext, double mapUnitsPerPixel, const QgsRectangle &extent, QgsRasterBlockFeedback *feedback=nullptr)
 Exports mesh layer's dataset values as raster block.
 
CORE_EXPORT QgsRasterBlockexportRasterBlock (const QgsTriangularMesh &triangularMesh, const QgsMeshDataBlock &datasetValues, const QgsMeshDataBlock &activeFlags, const QgsMeshDatasetGroupMetadata::DataType dataType, const QgsCoordinateTransform &transform, double mapUnitsPerPixel, const QgsRectangle &extent, QgsRasterBlockFeedback *feedback=nullptr)
 Exports mesh layer's dataset values as raster block.
 

Function Documentation

◆ exportRasterBlock() [1/2]

QgsRasterBlock * QgsMeshUtils::exportRasterBlock ( const QgsMeshLayer layer,
const QgsMeshDatasetIndex datasetIndex,
const QgsCoordinateReferenceSystem destinationCrs,
const QgsCoordinateTransformContext transformContext,
double  mapUnitsPerPixel,
const QgsRectangle extent,
QgsRasterBlockFeedback feedback = nullptr 
)

Exports mesh layer's dataset values as raster block.

The function always fetches native mesh and dataset data from data provider and calculates triangular mesh

Parameters
layermesh layer
datasetIndexindex from layer defining group and dataset (time) to export
destinationCrsdestination/map CRS. Used to create triangular mesh from native mesh
transformContextTransform context to transform layer CRS to destination CRS
mapUnitsPerPixelmap units per pixel for block
extentextent of block in destination CRS
feedbackoptional raster feedback object for cancellation/preview
Returns
raster block with Float::64 values. nullptr on error
Since
QGIS 3.6

Definition at line 213 of file qgsmeshlayerinterpolator.cpp.

◆ exportRasterBlock() [2/2]

QgsRasterBlock * QgsMeshUtils::exportRasterBlock ( const QgsTriangularMesh triangularMesh,
const QgsMeshDataBlock datasetValues,
const QgsMeshDataBlock activeFlags,
const QgsMeshDatasetGroupMetadata::DataType  dataType,
const QgsCoordinateTransform transform,
double  mapUnitsPerPixel,
const QgsRectangle extent,
QgsRasterBlockFeedback feedback = nullptr 
)

Exports mesh layer's dataset values as raster block.

Parameters
triangularMeshthe triangular mesh of the mesh layer
datasetValuesdataset values used to build the raster block
activeFlagsactive flag values
dataTypethe data type iof the dataset values
transformthe coordinate transform used to export the raster block
mapUnitsPerPixelmap units per pixel for block
extentextent of block in destination CRS
feedbackoptional raster feedback object for cancellation/preview
Returns
raster block with Float::64 values. nullptr on error
Since
QGIS 3.18

Definition at line 279 of file qgsmeshlayerinterpolator.cpp.