OSGB {geosphere} | R Documentation |
Ordnance Survey for Great Britain grid reference system
Description
Convert coordinates to the grid reference system used by the Ordnance Survey for Great Britain. Or do the inverse operation to get coordinates for a grid code.
Usage
OSGB(xy, precision, geo=FALSE, inverse=FALSE)
Arguments
xy |
x coordinate pairs (vector, matrix, data.frame |
; or grid codes if inverse=TRUE
.
precision |
character. One of "1m", "5m", "10m", "50m", "100m", "500m", "1km", "5km", "10km", "50km", "100km", "500km" |
geo |
If |
inverse |
If |
Value
character
Examples
pnts <- rbind(cbind(93555 , 256188),
cbind(210637, 349798),
cbind(696457, 481704))
g <- OSGB(pnts, "1km", geo=FALSE)
g
OSGB(g, inverse=TRUE)
[Package geosphere version 1.5-20 Index]