Skip to content
Permalink
Browse files

Also consider inverted direct datum transformations

  • Loading branch information
mhugent committed Nov 16, 2013
1 parent dc3272a commit 7fbc69234d72c92507e728966fb2cdcd2c3e00af
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgscoordinatetransform.cpp
@@ -792,6 +792,8 @@ QList< QList< int > > QgsCoordinateTransform::datumTransformations( const QgsCoo
QList<int> directTransforms;
searchDatumTransform( QString( "SELECT coord_op_code FROM tbl_datum_transform WHERE source_crs_code = %1 AND target_crs_code = %2" ).arg( srcAuthCode ).arg( destAuthCode ),
directTransforms );
searchDatumTransform( QString( "SELECT coord_op_code FROM tbl_datum_transform WHERE source_crs_code = %1 AND target_crs_code = %2" ).arg( destAuthCode ).arg( srcAuthCode ),
directTransforms );
QList<int> srcToWgs84;
searchDatumTransform( QString( "SELECT coord_op_code FROM tbl_datum_transform WHERE ( source_crs_code = %1 AND target_crs_code = %2 ) OR ( source_crs_code = %2 AND target_crs_code = %1 )" ).arg( srcAuthCode ).arg( 4326 ),
srcToWgs84 );

0 comments on commit 7fbc692

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