R/HK80UTM_TO_WGS84UTM.R

Defines functions HK80UTM_TO_WGS84UTM

Documented in HK80UTM_TO_WGS84UTM

HK80UTM_TO_WGS84UTM <-
function(N, E, zone = c(49, 50)){
    ### The unit for N and E is meter. The zone is either 49 or 50
    if(zone == 49){
        res.N <- N - 195
        res.E <- E + 245
    }
    if(zone == 50){
        res.N <- N - 205
        res.E <- E + 260
    }
    return(data.frame(N = res.N, E = res.E, zone = zone))
}

Try the HK80 package in your browser

Any scripts or data that you put into this service are public.

HK80 documentation built on May 2, 2019, 2:10 a.m.