Skip to content
Permalink
Browse files

Change epsg datum transform 9607 to 9606 by switching the sign of the…

… rotation parameters
  • Loading branch information
mhugent committed Nov 25, 2013
1 parent 40a8cb9 commit fc115a4508acc3f579ed3b0210b48f507ee10871
Showing with 9 additions and 0 deletions.
  1. BIN resources/srs.db
  2. +9 −0 src/core/qgscoordinatereferencesystem.cpp
BIN +0 Bytes (100%) resources/srs.db
Binary file not shown.
@@ -1996,6 +1996,15 @@ bool QgsCoordinateReferenceSystem::syncDatumTransform( const QString& dbPath )
p7 = csList[csSize - 2];
p7 = p7.isEmpty() ? "NULL" : p7;

//switch sign of rotation parameters. See http://trac.osgeo.org/proj/wiki/GenParms#towgs84-DatumtransformationtoWGS84
if ( coord_op_method == "9607" )
{
p4 = qgsDoubleToString( -( p4.toDouble() ) );
p5 = qgsDoubleToString( -( p5.toDouble() ) );
p6 = qgsDoubleToString( -( p6.toDouble() ) );
coord_op_method = "9606";
}

//entry already in db?
sqlite3_stmt* stmt;
QString cOpCode;

0 comments on commit fc115a4

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