#include"stdafx.h"#include#definePi3.1415926535897932384626433832795028841971693993751058209749445923078164constdoubleawgs=6378137.0;//WGS84Semi-MajorAxis=EquatorialRadiusinmetersconstdoublebwgs=6356752.314;//WGS84Semi-MinorAxis=PolarRadiusinmetersconstdoubleabes=6377397.155;//BesselSemi-MajorAxis=EquatorialRadiusinmetersconstdoublebbes=6356078.962;//BesselSemi-MinorAxis=PolarRadiusinmetersconstdoublecbes=111120.6196;//BessellatitudetoGauss-Kruegermetersconstdoubledx=-585.7;//TranslationParameter1constdoubledy=-87.0;//TranslationParameter2constdoubledz=-409.2;//TranslationParameter3constdoublerotx=2.540423689E-6;//RotationParameter1constdoubleroty=7.514612057E-7;//RotationParameter2constdoublerotz=-1.368144208E-5;//RotationParameter3//constdoublesc=1/0.99999122;//ScalingFactorwrong!//MaikStoeckmannreportedthiserroronNov12th2002.Thankyou,Maik!constdoublesc=0.99999122;//ScalingFactor
1