Skip to content

Commit cfcf12f

Browse files
committed
Small core formatting changes only
1 parent 6ebcd65 commit cfcf12f

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

python/core/qgsrasterdataprovider.sip

+9
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,14 @@ class QgsRasterDataProvider : QgsDataProvider
151151
/**Sets the output device resolution.
152152
@note: this method was added in version 1.2*/
153153
void setDpi( int dpi );
154+
155+
/** read block of data using give extent and size */
156+
/*virtual void readBlock( int bandNo,
157+
QgsRectangle const & viewExtent,
158+
int width, int height,
159+
QgsCoordinateReferenceSystem theSrcCRS,
160+
QgsCoordinateReferenceSystem theDestCRS,
161+
void *data ); */
162+
154163
};
155164

src/core/qgsrasterdataprovider.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
#include <QMap>
2424
#include <QByteArray>
2525

26-
void QgsRasterDataProvider::readBlock( int bandNo, QgsRectangle const & viewExtent, int width, int height, QgsCoordinateReferenceSystem theSrcCRS, QgsCoordinateReferenceSystem theDestCRS, void *data )
26+
void QgsRasterDataProvider::readBlock( int bandNo, QgsRectangle
27+
const & viewExtent, int width,
28+
int height,
29+
QgsCoordinateReferenceSystem theSrcCRS,
30+
QgsCoordinateReferenceSystem theDestCRS,
31+
void *data )
2732
{
2833
QgsDebugMsg( "Entered" );
2934
QgsDebugMsg( "viewExtent = " + viewExtent.toString() );

src/core/raster/qgsrasterlayer.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4580,7 +4580,11 @@ void *QgsRasterLayer::readData( int bandNo, QgsRasterViewPort *viewPort )
45804580
viewPort->mDrawnExtent.xMaximum(),
45814581
viewPort->mDrawnExtent.yMaximum()
45824582
);
4583-
mDataProvider->readBlock( bandNo, partExtent, viewPort->drawableAreaXDim, viewPort->drawableAreaYDim, viewPort->mSrcCRS, viewPort->mDestCRS, data );
4583+
mDataProvider->readBlock( bandNo, partExtent,
4584+
viewPort->drawableAreaXDim,
4585+
viewPort->drawableAreaYDim,
4586+
viewPort->mSrcCRS,
4587+
viewPort->mDestCRS, data );
45844588
}
45854589
return data;
45864590
}

0 commit comments

Comments
 (0)