wuwxxia
路人甲
路人甲
  • 注册日期2004-07-01
  • 发帖数158
  • QQ303098876
  • 铜币171枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:2103回复:4

地图投影变换

楼主#
更多 发布于:2004-09-11 18:01
<DIV class=O v:shape="_x0000_s2050">
<P ><FONT face="Times New Roman" size=3>#ifndef _COORTRANS_H_INCLUDED</FONT></P>
<P ><FONT face="Times New Roman" size=3>#define _COORTRANS_H_INCLUDED</FONT></P>
<P ><FONT face="Times New Roman" size=3>#include </FONT></P>
<P ><FONT face="Times New Roman" size=3>const double PI = 3.14159265353846;</FONT></P>
<P ><FONT face="Times New Roman" size=3>class PrjPoint</FONT></P>
<P ><FONT face="Times New Roman" size=3>{</FONT></P>
<P ><FONT face="Times New Roman" size=3>public:</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">double L0; // </FONT>中央子午线经度</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">double B, L; // </FONT>大地坐标</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">double x, y; // </FONT>高斯投影平面坐标</FONT></P>
<P ><FONT face="Times New Roman" size=3>public:</FONT></P>
<P ><FONT face="Times New Roman" size=3>BOOL BL2xy();</FONT></P>
<P ><FONT face="Times New Roman" size=3>BOOL xy2BL();</FONT></P>
<P ><FONT face="Times New Roman" size=3>protected:</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">double a, f, e2, e12; // </FONT>基本椭球参数</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">double A1, A2, A3, A4; // </FONT>用于计算<FONT face="Times New Roman">X</FONT>的椭球参数</FONT></P>
<P ><FONT face="Times New Roman" size=3>public:</FONT></P>
<P ><FONT face="Times New Roman" size=3>BOOL SetL0(double dL0);</FONT></P>
<P ><FONT face="Times New Roman" size=3>BOOL SetBL(double dB, double dL);</FONT></P>
<P ><FONT face="Times New Roman" size=3>BOOL GetBL(double *dB, double *dL);</FONT></P>
<P ><FONT face="Times New Roman" size=3>BOOL Setxy(double dx, double dy);</FONT></P>
<P ><FONT face="Times New Roman" size=3>BOOL Getxy(double *dx, double *dy);</FONT></P>
<P ><FONT face="Times New Roman" size=3>};</FONT></P>
<P ><FONT face="Times New Roman" size=3>class PrjPoint_Krasovsky : virtual public PrjPoint</FONT></P>
<P ><FONT face="Times New Roman" size=3>{</FONT></P>
<P ><FONT face="Times New Roman" size=3>public:</FONT></P>
<P ><FONT face="Times New Roman" size=3>PrjPoint_Krasovsky();</FONT></P>
<P ><FONT face="Times New Roman" size=3>~PrjPoint_Krasovsky();</FONT></P>
<P ><FONT face="Times New Roman" size=3>};</FONT></P>
<P ><FONT face="Times New Roman" size=3>class PrjPoint_IUGG1975 : virtual public PrjPoint</FONT></P>
<P ><FONT face="Times New Roman" size=3>{</FONT></P>
<P ><FONT face="Times New Roman" size=3>public:</FONT></P>
<P ><FONT face="Times New Roman" size=3>PrjPoint_IUGG1975();</FONT></P>
<P ><FONT face="Times New Roman" size=3>~PrjPoint_IUGG1975();</FONT></P>
<P ><FONT face="Times New Roman" size=3>};</FONT></P>
<P ><FONT face="Times New Roman" size=3>double Dms2Rad(double Dms);</FONT></P>
<P ><FONT face="Times New Roman" size=3>double Rad2Dms(double Rad);</FONT></P>
<P ><FONT face="Times New Roman"><FONT size=3>#endif /* nde</FONT>f _COORTRANS_H_INCLUDED */</FONT></P></DIV>
<DIV class=O v:shape="_x0000_s2050"> </DIV>
喜欢0 评分0
游客

返回顶部