R/WGS84UTM_TO_HK80UTM.R

Defines functions WGS84UTM_TO_HK80UTM

Documented in WGS84UTM_TO_HK80UTM

WGS84UTM_TO_HK80UTM <-
function(N, E, zone = c(49, 50)){
    ### The unit for N and E is meter
    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.