GithubHelp home page GithubHelp logo

osgridref's Introduction

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"

osgridref's People

Contributors

matthewjwhittle avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.