Skip to content
Permalink
Browse files
QgsRasterProjector optional precision
  • Loading branch information
blazek committed May 25, 2015
1 parent 5b3a96d commit 407f72135921a317277b322035277e0f441f38b7
Showing with 8 additions and 0 deletions.
  1. +6 −0 src/core/raster/qgsrasterblock.cpp
  2. +2 −0 src/core/raster/qgsrasterblock.h
@@ -881,6 +881,12 @@ bool QgsRasterBlock::createNoDataBitmap()
return true;
}

QString QgsRasterBlock::toString() const
{
return QString( "dataType = %1 width = %2 height = %3" )
.arg( mDataType ).arg( mWidth ).arg( mHeight );
}

QRect QgsRasterBlock::subRect( const QgsRectangle & theExtent, int theWidth, int theHeight, const QgsRectangle & theSubExtent )
{
QgsDebugMsg( "theExtent = " + theExtent.toString() );
@@ -301,6 +301,8 @@ class CORE_EXPORT QgsRasterBlock
/** \brief Set error */
void setError( const QgsError & theError ) { mError = theError;}

QString toString() const;

/** \brief For theExtent and theWidht, theHeight find rectangle covered by subextent.
* The output rect has x oriented from left to right and y from top to bottom
* (upper-left to lower-right orientation).

1 comment on commit 407f721

@blazek

This comment has been minimized.

Copy link
Member Author

@blazek blazek commented on 407f721 May 25, 2015

Wrong commit message, I messed qgsrasterblock with qgsrasterprojector.

Please sign in to comment.