Esempio n. 1
0
        public static Gps Gps84_To_bd09(double gps_lat, double gps_lon)
        {
            Gps gps = gps84_To_Gcj02(gps_lat, gps_lon);

            Gps gps1 = gcj02_To_Bd09(gps.getWgLat(), gps.getWgLon());

            return(gps1);
        }
Esempio n. 2
0
        public static Gps gcj_To_Gps84(double lat, double lon)
        {
            Gps    gps       = transform(lat, lon);
            double lontitude = lon * 2 - gps.getWgLon();
            double latitude  = lat * 2 - gps.getWgLat();

            return(new Gps(latitude, lontitude));
        }
Esempio n. 3
0
        public static Gps bd09_To_Gps84(double bd_lat, double bd_lon)
        {
            Gps gcj02 = CoordUtil.bd09_To_Gcj02(bd_lat, bd_lon);
            Gps map84 = CoordUtil.gcj_To_Gps84(gcj02.getWgLat(),
                                               gcj02.getWgLon());

            return(map84);
        }