久久久久久久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,將緯度/經(jīng)度轉(zhuǎn)換為 UTM

        Java, convert lat/lon to UTM(Java,將緯度/經(jīng)度轉(zhuǎn)換為 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,將緯度/經(jīng)度轉(zhuǎn)換為 UTM的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  有沒(méi)有人知道在 Java 中將地球表面位置從 lat、lon 轉(zhuǎn)換為 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]);
                  

                  這篇關(guān)于Java,將緯度/經(jīng)度轉(zhuǎn)換為 UTM的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測(cè) 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語(yǔ)句之前的局部變量,這有關(guān)系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 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>
                          • 主站蜘蛛池模板: 国产精品成人在线观看 | 日韩欧美一区二区三区免费观看 | 欧美一级做性受免费大片免费 | 国产成都精品91一区二区三 | 精品国产一区二区久久 | 日本爱爱 | 久久久国产亚洲精品 | 青青操91 | 日本视频在线 | 久久久久国产一区二区三区 | 999国产视频| 精久久久 | 免费av毛片| 亚洲国产精品视频一区 | 日韩久久久一区二区 | 国产精品久久国产愉拍 | 亚洲午夜视频 | 一区二区三区在线 | 成人在线中文字幕 | 亚洲手机视频在线 | 国产欧美日韩在线观看 | 日本一区二区三区免费观看 | 国产精品成人品 | 国产精品精品 | 奇米影视在线 | 中文字幕在线不卡 | 欧美日韩国产传媒 | 中文天堂网 | 国产成人在线视频免费观看 | 欧美激情区 | 伊人手机在线视频 | 看片wwwwwwwwwww| 国产重口老太伦 | 久久久久国| 欧美精品91 | 一区二区三区在线免费观看 | 国产91精品久久久久久久网曝门 | 特黄特黄a级毛片免费专区 av网站免费在线观看 | 国产三级国产精品 | 情侣黄网站免费看 | 国产精品入口麻豆www |