Skip to content

Convert from OSGB Grid References to Eastings and Northings

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

MatthewJWhittle/osgridref

Repository files navigation

osgridref

Travis Status

Overview

Spatial data is often store as Ordinance Survey National Grid references. This is an easy way to recorded spatial data in the field but isn’t straight forward to convert to coordinates. The goalof the osgridref package is to provide a functions to easily convert grid references to eastings and northings (EPSG:27700) and back again.

Installation

The package can currently be installed from github:

# Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("matthewjwhittle/osgridref")

Examples

library(osgridref)

grid_refs <- c("TA 304 403", "SE 2344 0533", "SE13", "SE 23444 05334")
# Returns a tibble of X and Y coords and their resolution
xy_table <- gridref_to_xy(grid_refs)

Convert coordinates back to grid references

xy_to_gridref(x = xy_table$x, y = xy_table$y, digits = 8)
## [1] "TA 3040 4030" "SE 2344 0533" "SE 1000 3000" "SE 2344 0533"

About

Convert from OSGB Grid References to Eastings and Northings

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages