Skip to content

Commit 1b11ba4

Browse files
committedJan 21, 2019
fix docs
1 parent 7423a74 commit 1b11ba4

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed
 

‎python/core/auto_generated/mesh/qgsmeshlayerinterpolator.sip.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ namespace QgsMeshUtils
2424
QgsRasterBlock *exportRasterBlock(
2525
const QgsMeshLayer &layer,
2626
const QgsMeshDatasetIndex &datasetIndex,
27-
const QgsCoordinateReferenceSystem &destination,
28-
const QgsCoordinateTransformContext &context,
27+
const QgsCoordinateReferenceSystem &destinationCrs,
28+
const QgsCoordinateTransformContext &transformContext,
2929
double mapUnitsPerPixel,
3030
const QgsRectangle &extent,
3131
QgsRasterBlockFeedback *feedback = 0
3232
) /Factory/;
3333
%Docstring
3434
Exports mesh layer's dataset values as raster block
3535

36+
The function always fetches native mesh and dataset data
37+
from data provider and calculates triangular mesh
38+
3639
:param layer: mesh layer
3740
:param datasetIndex: index from layer defining group and dataset (time) to export
38-
:param destination: destination/map CRS. Used to create triangular mesh from native mesh
39-
:param context: Transform context to transform layer CRS to destination CRS
41+
:param destinationCrs: destination/map CRS. Used to create triangular mesh from native mesh
42+
:param transformContext: Transform context to transform layer CRS to destination CRS
4043
:param mapUnitsPerPixel: map units per pixel for block
4144
:param extent: extent of block in destination CRS
4245
:param feedback: optional raster feedback object for cancelation/preview

‎src/core/mesh/qgsmeshlayerinterpolator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ QgsRasterBlock *QgsMeshLayerInterpolator::block( int, const QgsRectangle &extent
154154
QgsRasterBlock *QgsMeshUtils::exportRasterBlock(
155155
const QgsMeshLayer &layer,
156156
const QgsMeshDatasetIndex &datasetIndex,
157-
const QgsCoordinateReferenceSystem &destination,
158-
const QgsCoordinateTransformContext &context,
157+
const QgsCoordinateReferenceSystem &destinationCrs,
158+
const QgsCoordinateTransformContext &transformContext,
159159
double mapUnitsPerPixel,
160160
const QgsRectangle &extent,
161161
QgsRasterBlockFeedback *feedback )
@@ -176,7 +176,7 @@ QgsRasterBlock *QgsMeshUtils::exportRasterBlock(
176176
widthPixel,
177177
heightPixel,
178178
0 );
179-
QgsCoordinateTransform transform( layer.crs(), destination, context );
179+
QgsCoordinateTransform transform( layer.crs(), destinationCrs, transformContext );
180180

181181
QgsRenderContext renderContext;
182182
renderContext.setCoordinateTransform( transform );

‎src/core/mesh/qgsmeshlayerinterpolator.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ namespace QgsMeshUtils
8484
/**
8585
* Exports mesh layer's dataset values as raster block
8686
*
87+
* The function always fetches native mesh and dataset data
88+
* from data provider and calculates triangular mesh
89+
*
8790
* \param layer mesh layer
8891
* \param datasetIndex index from layer defining group and dataset (time) to export
89-
* \param destination destination/map CRS. Used to create triangular mesh from native mesh
90-
* \param context Transform context to transform layer CRS to destination CRS
92+
* \param destinationCrs destination/map CRS. Used to create triangular mesh from native mesh
93+
* \param transformContext Transform context to transform layer CRS to destination CRS
9194
* \param mapUnitsPerPixel map units per pixel for block
9295
* \param extent extent of block in destination CRS
9396
* \param feedback optional raster feedback object for cancelation/preview
@@ -98,8 +101,8 @@ namespace QgsMeshUtils
98101
CORE_EXPORT QgsRasterBlock *exportRasterBlock(
99102
const QgsMeshLayer &layer,
100103
const QgsMeshDatasetIndex &datasetIndex,
101-
const QgsCoordinateReferenceSystem &destination,
102-
const QgsCoordinateTransformContext &context,
104+
const QgsCoordinateReferenceSystem &destinationCrs,
105+
const QgsCoordinateTransformContext &transformContext,
103106
double mapUnitsPerPixel,
104107
const QgsRectangle &extent,
105108
QgsRasterBlockFeedback *feedback = nullptr

0 commit comments

Comments
 (0)
Please sign in to comment.