Skip to content
Permalink
Browse files

Add debug informations

  • Loading branch information
mhugent committed Oct 31, 2013
1 parent b9cf9ee commit 73d0d9d3dfd63a427e85573aa8b50f8ba74e04c7
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/core/qgscoordinatetransform.cpp
  2. +2 −0 src/gui/qgsmapcanvas.cpp
@@ -838,6 +838,7 @@ QString QgsCoordinateTransform::stripDatumTransform( const QString& proj4 )
void QgsCoordinateTransform::searchDatumTransform( const QString& sql, QList< int >& transforms )
{
sqlite3* db;
QgsMessageLog::logMessage( "QgsCoordinateTransform::searchDatumTransform" );
int openResult = sqlite3_open( QgsApplication::srsDbFilePath().toUtf8().constData(), &db );
if ( openResult != SQLITE_OK )
{
@@ -859,6 +860,7 @@ void QgsCoordinateTransform::searchDatumTransform( const QString& sql, QList< in
}
sqlite3_finalize( stmt );
sqlite3_close( db );
QgsMessageLog::logMessage( QString( "Fount %1 datum transforms" ).arg( transforms.size() ) );
}

QString QgsCoordinateTransform::datumTransformString( int datumTransform )
@@ -1555,6 +1555,8 @@ void QgsMapCanvas::getDatumTransformInfo( QgsMapLayer* ml, const QString& srcAut
return;
}

QgsMessageLog::logMessage( "QgsMapCanvas::getDatumTransformInfo" );

//create two crs
const QgsCoordinateReferenceSystem& srcCRS = QgsCRSCache::instance()->crsByAuthId( srcAuthId );
const QgsCoordinateReferenceSystem& destCRS = QgsCRSCache::instance()->crsByAuthId( destAuthId );

0 comments on commit 73d0d9d

Please sign in to comment.
You can’t perform that action at this time.