乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Web墨卡托坐標與WGS84經緯度互轉 java代碼

       nacy2012 2015-11-09
      package Mypackage;

      public class coordinate {
      static double M_PI = Math.PI;
      //經緯度轉墨卡托
      // 經度(lon),緯度(lat)
      public static double[] lonLat2Mercator(double lon,double lat)
      {
      double[] xy = new double[2];

      double x = lon *20037508.342789/180;

      double y = Math.log(Math.tan((90+lat)*M_PI/360))/(M_PI/180);

      y = y *20037508.34789/180;

      xy[0] = x;
      xy[1] = y;
      return xy;
      }

      //墨卡托轉經緯度

      public static double[] Mercator2lonLat(double mercatorX,double mercatorY)
      {
      double[] xy = new double[2];
      double x = mercatorX/20037508.34*180;

      double y = mercatorY/20037508.34*180;

      y= 180/M_PI*(2*Math.atan(Math.exp(y*M_PI/180))-M_PI/2);

      xy[0] = x;
      xy[1] = y;
      return xy;

      }
      public static void main(String[] args)
      {
      double[] num;
      num = lonLat2Mercator(120.385222,36.061416);
      for(int i=0;i<num.length;i++)
      {
      System.out.println(num[i]);
      }
      // num = Mercator2lonLat(13401221.612075035,4309075.414032666);
      // for(int i=0;i<num.length;i++)
      // {
      // System.out.println(num[i]);
      // }
      }


      }


        本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯系方式、誘導購買等信息,謹防詐騙。如發(fā)現有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多