天天看點

ArcGIS for Android導入天地圖ArcGIS——2000坐标與84坐标互相轉換以及各種類型坐标的轉換(簡單能用)

看到網上有很多類型的坐标轉換但是有關2000坐标轉換的很少;很納悶,于是在公司探索中發現了2000的坐标的轉換;知道方法後其實還挺簡單的。

implementation 'com.esri.arcgis.android:arcgis-android:10.2.9'
           
SpatialReference inputSR = SpatialReference.create(4523); //4523為2000坐标的參數
        SpatialReference outputSR = SpatialReference.create(4326);//4326為84坐标參數
        Point point200 = new Point(35584244.13, 4266050.423);//偏差後4位
        Point point84 = (Point) GeometryEngine.project(point200, inputSR, outputSR);
        double x = point84.getX();
        double y = point84.getY();
           

相關的坐标轉換參數:https://www.jianshu.com/p/19d588c1d914