wgs2bd: Convert coordinates

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

Description

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

Usage

1
wgs2bd(wgsLat, wgsLon)

Arguments

wgsLat

a numeric latitude in WGS-84

wgsLon

a numeric longitude in WGS-84

Details

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

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

wgs2gcj, gcj2bd, 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)
wgs2bd(39.90105, 116.42079) # correct
# convert multiple coordinates
wgs2bd(c(39.99837, 39.98565), c(116.3203, 116.2998))

## End(Not run)

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