Skip to content
Permalink
Browse files
Use CRS cache and avoid sqlite lookup for each request
  • Loading branch information
mhugent committed Dec 7, 2012
1 parent cb7d1ec commit 8dc0135b2c30697512a90a575b041562245c9447
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgscoordinatetransform.cpp
@@ -15,6 +15,7 @@
* *
***************************************************************************/
#include "qgscoordinatetransform.h"
#include "qgscrscache.h"
#include "qgsmessagelog.h"
#include "qgslogger.h"

@@ -148,9 +149,8 @@ void QgsCoordinateTransform::initialise()
if ( !mDestCRS.isValid() )
{
//No destination projection is set so we set the default output projection to
//be the same as input proj. This only happens on the first layer loaded
//whatever that may be...
mDestCRS.createFromOgcWmsCrs( mSourceCRS.authid() );
//be the same as input proj.
mDestCRS = QgsCRSCache::instance()->crsByAuthId( mSourceCRS.authid() );
}

// init the projections (destination and source)

0 comments on commit 8dc0135

Please sign in to comment.