Skip to content

Commit

Permalink
Use CRS cache and avoid sqlite lookup for each request
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 7, 2012
1 parent cb7d1ec commit 8dc0135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgscoordinatetransform.cpp
Expand Up @@ -15,6 +15,7 @@
* *
***************************************************************************/
#include "qgscoordinatetransform.h"
#include "qgscrscache.h"
#include "qgsmessagelog.h"
#include "qgslogger.h"

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8dc0135

Please sign in to comment.