Skip to content

Commit

Permalink
QgsRasterProjector optional precision
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed May 25, 2015
1 parent 5b3a96d commit 407f721
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/raster/qgsrasterblock.cpp
Expand Up @@ -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() );
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgsrasterblock.h
Expand Up @@ -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).
Expand Down

1 comment on commit 407f721

@blazek
Copy link
Member Author

@blazek blazek commented on 407f721 May 25, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong commit message, I messed qgsrasterblock with qgsrasterprojector.

Please sign in to comment.