QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Functions | |
CORE_EXPORT QgsRasterBlock * | 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. | |
CORE_EXPORT QgsRasterBlock * | 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. | |
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
layer | mesh layer |
datasetIndex | index from layer defining group and dataset (time) to export |
destinationCrs | destination/map CRS. Used to create triangular mesh from native mesh |
transformContext | Transform context to transform layer CRS to destination CRS |
mapUnitsPerPixel | map units per pixel for block |
extent | extent of block in destination CRS |
feedback | optional raster feedback object for cancellation/preview |
nullptr
on errorDefinition at line 213 of file qgsmeshlayerinterpolator.cpp.
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.
triangularMesh | the triangular mesh of the mesh layer |
datasetValues | dataset values used to build the raster block |
activeFlags | active flag values |
dataType | the data type iof the dataset values |
transform | the coordinate transform used to export the raster block |
mapUnitsPerPixel | map units per pixel for block |
extent | extent of block in destination CRS |
feedback | optional raster feedback object for cancellation/preview |
nullptr
on errorDefinition at line 279 of file qgsmeshlayerinterpolator.cpp.