Skip to content

Commit

Permalink
Change epsg datum transform 9607 to 9606 by switching the sign of the…
Browse files Browse the repository at this point in the history
… rotation parameters
  • Loading branch information
mhugent committed Nov 25, 2013
1 parent 40a8cb9 commit fc115a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file modified resources/srs.db
Binary file not shown.
9 changes: 9 additions & 0 deletions src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit fc115a4

Please sign in to comment.