bd2wgs: Convert coordinates

Description Usage Arguments Details Value Author(s) See Also Examples

Description

converts lat/lon coordintes from BD-09 to WGS-84

Usage

1
bd2wgs(bdLat, bdLon)

Arguments

bdLat

a numeric latitude in BD-09

bdLon

a numeric longitude in BD-09

Details

convert BD-09 coordinates first into GCJ-02, then into WGS-84.

Value

a data.frame with variables lat/lng

Author(s)

Jun Cai (cai-j12@mails.tsinghua.edu.cn), PhD candidate from Department of Earth System Science, Tsinghua University

See Also

bd2gcj, gcj2wgs, conv.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# latitude/longitude coordinates of Beijing railway station
# WGS-84: (39.90105, 116.42079)
# BD-09:  (39.90851, 116.43351)
bd2wgs(39.90851, 116.43351) # correct verifying by google earth
# convert multiple coordinates
bd2wgs(c(40.00541, 39.99299), c(116.3330, 116.3124))

## End(Not run)

caijun/geoChina documentation built on May 13, 2019, 11 a.m.