阅读:2302回复:4
地图投影变换
<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> |
|
1楼#
发布于:2004-09-13 16:52
up
|
|
2楼#
发布于:2004-09-13 13:31
不懂
|
|
|
3楼#
发布于:2004-09-13 09:01
不好懂
|
|
|
4楼#
发布于:2004-09-12 19:40
<P>哦</P><P>出来看天书啊</P>
|
|
|