現有庫WG2CHN,朋友告知為四維的經緯度校準函數庫,函數原型如下
WG2CHN_API unsigned int Gps2CN(unsigned int wg_lng,//input WGS84 longitude from GPS (LSB=1/1024 S)
unsigned int wg_lat,//input WGS84 latitude from GPS (LSB=1/1024 S)
int wg_heit,//input present altitude (LSB=1m))
unsigned int *china_lng,//output shifted longitude (LSB=1/1024 S)
unsigned int *china_lat//output shifted latitude (LSB=1/1024 S)
);
不管如何調用參數帶入,均失敗,不知法門,只是看到帶入參數類型都是無符整型,所以將經緯度全取整小數點,請了解此庫的朋友幫忙!
unsigned int r = Gps2CN(121462959,31241604,50,&olon,&olat);