现有库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);