久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='PxIIl'><tr id='PxIIl'><dt id='PxIIl'><q id='PxIIl'><span id='PxIIl'><b id='PxIIl'><form id='PxIIl'><ins id='PxIIl'></ins><ul id='PxIIl'></ul><sub id='PxIIl'></sub></form><legend id='PxIIl'></legend><bdo id='PxIIl'><pre id='PxIIl'><center id='PxIIl'></center></pre></bdo></b><th id='PxIIl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PxIIl'><tfoot id='PxIIl'></tfoot><dl id='PxIIl'><fieldset id='PxIIl'></fieldset></dl></div>

  • <legend id='PxIIl'><style id='PxIIl'><dir id='PxIIl'><q id='PxIIl'></q></dir></style></legend>

      <small id='PxIIl'></small><noframes id='PxIIl'>

      • <bdo id='PxIIl'></bdo><ul id='PxIIl'></ul>
      1. <tfoot id='PxIIl'></tfoot>

      2. Java,將緯度/經度轉換為 UTM

        Java, convert lat/lon to UTM(Java,將緯度/經度轉換為 UTM)

        <legend id='lnBQl'><style id='lnBQl'><dir id='lnBQl'><q id='lnBQl'></q></dir></style></legend>
        • <bdo id='lnBQl'></bdo><ul id='lnBQl'></ul>
        • <i id='lnBQl'><tr id='lnBQl'><dt id='lnBQl'><q id='lnBQl'><span id='lnBQl'><b id='lnBQl'><form id='lnBQl'><ins id='lnBQl'></ins><ul id='lnBQl'></ul><sub id='lnBQl'></sub></form><legend id='lnBQl'></legend><bdo id='lnBQl'><pre id='lnBQl'><center id='lnBQl'></center></pre></bdo></b><th id='lnBQl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lnBQl'><tfoot id='lnBQl'></tfoot><dl id='lnBQl'><fieldset id='lnBQl'></fieldset></dl></div>
            <tfoot id='lnBQl'></tfoot>

              <small id='lnBQl'></small><noframes id='lnBQl'>

                    <tbody id='lnBQl'></tbody>
                  本文介紹了Java,將緯度/經度轉換為 UTM的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  有沒有人知道在 Java 中將地球表面位置從 lat、lon 轉換為 UTM(比如在 WGS84 中)的方法?我目前正在研究 Geotools,但不幸的是解決方案并不明顯.

                  Does anyone know of a way, in Java, to convert an earth surface position from lat, lon to UTM (say in WGS84)? I'm currently looking at Geotools but unfortunately the solution is not obvious.

                  推薦答案

                  我能夠使用 Geotools 2.4 獲得一些可行的東西,基于一些 示例代碼.

                  I was able to use Geotools 2.4 to get something that works, based on some example code.

                  double utmZoneCenterLongitude = ...  // Center lon of zone, example: zone 10 = -123
                  int zoneNumber = ...                 // zone number, example: 10
                  double latitude, longitude = ...     // lat, lon in degrees
                  
                  MathTransformFactory mtFactory = ReferencingFactoryFinder.getMathTransformFactory(null);
                  ReferencingFactoryContainer factories = new ReferencingFactoryContainer(null);
                  
                  GeographicCRS geoCRS = org.geotools.referencing.crs.DefaultGeographicCRS.WGS84;
                  CartesianCS cartCS = org.geotools.referencing.cs.DefaultCartesianCS.GENERIC_2D;
                  
                  ParameterValueGroup parameters = mtFactory.getDefaultParameters("Transverse_Mercator");
                  parameters.parameter("central_meridian").setValue(utmZoneCenterLongitude);
                  parameters.parameter("latitude_of_origin").setValue(0.0);
                  parameters.parameter("scale_factor").setValue(0.9996);
                  parameters.parameter("false_easting").setValue(500000.0);
                  parameters.parameter("false_northing").setValue(0.0);
                  
                  Map properties = Collections.singletonMap("name", "WGS 84 / UTM Zone " + zoneNumber);
                  ProjectedCRS projCRS = factories.createProjectedCRS(properties, geoCRS, null, parameters, cartCS);
                  
                  MathTransform transform = CRS.findMathTransform(geoCRS, projCRS);
                  
                  double[] dest = new double[2];
                  transform.transform(new double[] {longitude, latitude}, 0, dest, 0, 1);
                  
                  int easting = (int)Math.round(dest[0]);
                  int northing = (int)Math.round(dest[1]);
                  

                  這篇關于Java,將緯度/經度轉換為 UTM的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                      • <bdo id='MLwXf'></bdo><ul id='MLwXf'></ul>

                        <tfoot id='MLwXf'></tfoot>

                        <small id='MLwXf'></small><noframes id='MLwXf'>

                            <tbody id='MLwXf'></tbody>
                          <legend id='MLwXf'><style id='MLwXf'><dir id='MLwXf'><q id='MLwXf'></q></dir></style></legend>
                            <i id='MLwXf'><tr id='MLwXf'><dt id='MLwXf'><q id='MLwXf'><span id='MLwXf'><b id='MLwXf'><form id='MLwXf'><ins id='MLwXf'></ins><ul id='MLwXf'></ul><sub id='MLwXf'></sub></form><legend id='MLwXf'></legend><bdo id='MLwXf'><pre id='MLwXf'><center id='MLwXf'></center></pre></bdo></b><th id='MLwXf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MLwXf'><tfoot id='MLwXf'></tfoot><dl id='MLwXf'><fieldset id='MLwXf'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 日韩av成人 | 国产精品久久久久久久久久久久久 | 国产精品久久久久久久久久不蜜臀 | 艹逼网| 午夜精品一区二区三区在线播放 | 一级毛片视频免费观看 | 免费特级黄毛片 | 久久91精品国产一区二区三区 | 日韩成人免费av | 日韩不卡在线 | 免费视频色 | 日本成人在线观看网站 | 日韩免费一区二区 | 成人黄色电影免费 | 久久久久久国产精品 | 日日操夜夜操天天操 | 欧美精品乱码久久久久久按摩 | 久久乐国产精品 | 久久久久久精 | 国产麻豆乱码精品一区二区三区 | 日韩手机视频 | 91porn在线| 亚洲免费观看视频网站 | 欧美在线国产精品 | 日本免费在线 | 亚洲一区二区免费视频 | 午夜精品一区二区三区在线播放 | 欧美激情视频网站 | 日韩资源 | 国产羞羞视频在线观看 | 久久精品欧美一区二区三区不卡 | 九九热在线视频观看这里只有精品 | 奇米久久 | 久久精品一区二区视频 | 91大神在线资源观看无广告 | 精品久久久久久亚洲综合网 | 日韩在线一区二区 | 麻豆久久久久 | 国产在线中文 | 日韩欧美三区 | 一级黄色片网站 |