none
GIS算法的实现 RRS feed

答案

  • Hi 翁继东,

    欢迎来到MSDN论坛!

    请您参考以下链接:

    http://www.mygis.com.cn/codeindex10.htm

    例如,下面的子链接提供了WGS84墨卡托投影转换算法实现:

    http://www.mygis.com.cn/codes/21-5588-5588.htm

    "开发环境:C#

    代码:

    前一阵数据处理项目用到墨卡托投影坐标转换,找了好多天才找到转换公式

    WGS84 Mercator project转换的算法(C#)

        N0 = 6378137.0 / Math.Sqrt( 1-Math.Pow(0.081819190843,2)*Math.Pow(Math.Sin(RefLat*Math.PI/180),2) );
          q1 = Math.Log( Math.Tan( (180.0/4.0+dLat/2.0)*Math.PI/180.0 ) );
          q2 = 0.081819190843/2 * Math.Log( (1+0.081819190843*Math.Sin(dLat*Math.PI/180.0) ) / 
           (1-0.081819190843*Math.Sin(dLat*Math.PI/180.0) )  );
          q = q1 - q2 ;
          x = N0 * Math.Cos(RefLat*Math.PI/180.0) * ((dLong-CentralMeridian)/57.29577951) ;
          y = N0 * Math.Cos(RefLat*Math.PI/180.0) * q ;


    式中
    输入参数:dLat----纬度

                   dLong----经度

                   RefLat----基准纬度

                  CentralMeridian----中央子午线

    输出:x----横坐标,y----纵坐标

    其余参数为中间过程参数"

    另外,关于GIS的问题,建议您到专门的GIS论坛咨询,在那里您能与更多的GIS专家接触。

    您可以尝试下面的论坛:
    http://www.gisforum.net/

    http://www.gisempire.com/

    http://www.gissky.net/

    谢谢您的理解。

    祝您,一切顺利!

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    2011年11月7日 2:34
    版主