欢迎来到天天文库
浏览记录
ID:47162145
大小:27.50 KB
页数:5页
时间:2019-08-14
《坐标转换源代码--GPS定位程序(C )》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、×ø±êת»»Ô´´úÂë--GPS¶¨Î»³ÌÐò(C++)GPSÊý¾Ý´¦ÀíÖÐΪÁËÂú×㲻ͬµÄÐèÒª£¬´¦ÀíµÄÊý¾ÝÒª½øÐÐ×ø±êת»»£¬µÃµ½ÔÚ²»Í¬×ø±êϵͳϵĽá¹û£¬ÏÂÃæÊǵѿ¨¶û×ø±êϵ£¬´óµØ×ø±êϵ£¬Õ¾ÐĵØƽ×ø±êϵ£¨ÏßÐͺͼ«×ø±êÐÎʽ£©Ö®¼äµÄת»»Ô´´úÂ룺ͷÎļþ£º#ifndef_COORDCOVERT_H#define_COORDCOVERT_H#i
2、nclude"stdlib.h"//WGS-84ÍÖÇòÌå²ÎÊýconstdoublea=6378137.0;//³¤°ëÖáconstdoubleflattening=1/298.257223563;//±âÂÊconstdoubledelta=0.0000001;typedefstructtagCRDCARTESIAN{doublex;doubley;doublez;}CRDCARTESIAN;typedefCRDCARTESIAN*PCRDCARTESIAN;//µÑ¿¨¶û×ø±êϵtype
3、defstructtagCRDGEODETIC{doublelongitude;doublelatitude;doubleheight;}CRDGEODETIC;typedefCRDGEODETIC*PCRDGEODETIC;//´óµØ×ø±êϵtypedefstructtagCRDTOPOCENTRIC{doublenorthing;doubleeasting;doubleupping;}CRDTOPOCENTRIC;typedefCRDTOPOCENTRIC*PCRDTOPOCENTRIC;//Õ
4、¾ÐĵØƽ×ø±êϵ£¨Ïß×ø±êÐÎʽ£©typedefstructtagCRDTOPOCENTRICPOLAR{doublerange;doubleazimuth;doubleelevation;}CRDTOPOCENTRICPOLAR;typedefCRDTOPOCENTRICPOLAR*PCRDTOPOCENTRICPOLAR;//Õ¾ÐĵØƽ×ø±êϵ£¨¼«×ø±êÐÎʽ£©//Óɵѿ¨¶û×ø±êת»»Îª´óµØ×ø±êvoidCartesianToGeodetic
5、(PCRDGEODETICpcg,PCRDCARTESIANpcc,doubledSemiMajorAxis,doubledFlattening);//pcg£ºÖ¸ÏòËùת»»³öµÄ´óµØ×ø±êµÄÖ¸Õ룻//pcc£ºÖ¸Ïò´ýת»»µÄµÑ¿¨¶û×ø±êµÄÖ¸Õ룻//dSemiMajorAxis£º²Î¿¼ÍÖÇòµÄ³¤°ëÖ᣻//dFlattening£º²Î¿¼ÍÖÇòµÄ±âÂÊ¡£//ÓÉ´óµØ×ø±êת»»ÎªµÑ¿¨¶û×ø±êvoidGeodetic
6、ToCartesian(PCRDCARTESIANpcc,PCRDGEODETICpcg,doubledSemiMajorAxis,doubledFlattening);//pcc£ºÖ¸ÏòËùת»»³öµÄµÑ¿¨¶û×ø±êµÄÖ¸Õ룻//pcg£ºÖ¸Ïò´ýת»»µÄ´óµØ×ø±êµÄÖ¸Õ룻//dSemiMajorAxis£º²Î¿¼ÍÖÇòµÄ³¤°ëÖ᣻//dFlattening£º²Î¿¼ÍÖÇòµÄ±âÂÊ¡£//Óɵѿ¨¶û×ø±êת»»ÎªÕ¾ÐĵØƽ×
7、ø±êvoidCartesianToTopocentric(PCRDTOPOCENTRICpct,PCRDCARTESIANpcc,PCRDCARTESIANpccCenter,doubledSemiMajorAxis,doubledFlattening);//pct£ºÖ¸ÏòËùת»»³öµÄÕ¾ÐĵØƽ×ø±êµÄÖ¸Õ룻//pcc£ºÖ¸Ïò´ýת»»µÄµÑ¿¨¶û×ø±êµÄÖ¸Õ룻//pccCenter£ºÖ¸ÏòÕ¾Ðĵĵѿ¨¶û×ø±êµÄÖ¸Õ룻//dSemi
8、MajorAxis£º²Î¿¼ÍÖÇòµÄ³¤°ëÖ᣻//dFlattening£º²Î¿¼ÍÖÇòµÄ±âÂÊ¡£//ÓÉÕ¾ÐĵØƽֱ½Ç×ø±êת»»ÎªÕ¾ÐĵØƽ¼«×ø±êvoidTopocentricToTopocentricPolar(PCRDTOPOCENTRICPOLARpctp,PCRDTOPOCENTRICpct);//pctp£ºÖ¸ÏòËùת»»³öµÄÕ¾ÐĵØƽ¼«×ø±ê
此文档下载收益归作者所有