|
QGIS API Documentation
3.6.0-Noosa (5873452)
|
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. More... | |
| CORE_EXPORT QList< int > | nativeFacesFromTriangles (const QList< int > &triangleIndexes, const QVector< int > &trianglesToNativeFaces) |
| Returns unique native faces indexes from list of triangle indexes. More... | |
| CORE_EXPORT QgsGeometry | toGeometry (const QgsMeshFace &face, const QVector< QgsMeshVertex > &vertices) |
| Returns face as polygon geometry. More... | |
| CORE_EXPORT std::unique_ptr< QgsPolygon > | toPolygon (const QgsMeshFace &face, const QVector< QgsMeshVertex > &vertices) |
| Returns face as polygon geometry, caller is responsible for delete. More... | |
| 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 cancelation/preview |
Definition at line 154 of file qgsmeshlayerinterpolator.cpp.
| QList< int > QgsMeshUtils::nativeFacesFromTriangles | ( | const QList< int > & | triangleIndexes, |
| const QVector< int > & | trianglesToNativeFaces | ||
| ) |
Returns unique native faces indexes from list of triangle indexes.
Definition at line 233 of file qgstriangularmesh.cpp.
| QgsGeometry QgsMeshUtils::toGeometry | ( | const QgsMeshFace & | face, |
| const QVector< QgsMeshVertex > & | vertices | ||
| ) |
Returns face as polygon geometry.
Definition at line 228 of file qgstriangularmesh.cpp.
| std::unique_ptr< QgsPolygon > QgsMeshUtils::toPolygon | ( | const QgsMeshFace & | face, |
| const QVector< QgsMeshVertex > & | vertices | ||
| ) |
Returns face as polygon geometry, caller is responsible for delete.
Definition at line 213 of file qgstriangularmesh.cpp.
1.8.13