Giter Club home page Giter Club logo

ostn02's Introduction

OSTN02

This is a Java library implementing the Ordnance Survey's OSTN02 conversion, between OS easting/northing (example: 528376.804,180799.396) and what everyone else uses, latitude/longitude (example: 51.511547,-0.151412). In other words, the same conversion as this online converter

So how do I use it?

        EastingNorthing first = new EastingNorthing(528376.804,180799.396);
        LatitudeLongitude second = first.toLatitudeLongitude();
        EastingNorthing third = second.toEastingNorthing();
        
        System.out.println("First: "+first.getEast()+","+first.getNorth());
        System.out.println("Second: "+second.getLat()+","+second.getLon());
        System.out.println("Third: "+third.getEast()+","+third.getNorth());

Produces:

First: 528376.804,180799.396
Second: 51.51154701260418,-0.15141202586203606
Third: 528376.8020999633,180799.3969603534

What license is it under?

We can't do this conversion without using some Ordnance Survey data.

The OSTN02 conversion table data is copyrighted by Ordnance Survey. You can copy it and integrate it into your software, but they require attribution; for more info see this documentation The data is (c) Crown copyright 2002, All rights reserved.

Logo reading Ordnance Survey OSTN02 Enabled

The java files that comprise the rest of this project are (c) Michael Tandy; they are under the MIT license.

How does it compare to other similar projects?

I wanted something simple; this project only has 5 classes, and most users will only need two of them - EastingNorthing and LatitudeLongitude.

  • Jcoord uses a Helmert transform instead of the lookup table, so it's less accurate. Jcoord is smaller as it doesn't have to include the lookup table.

  • GeoTools is a library with lots of features but it's big and has lots of dependencies.

ostn02's People

Contributors

tylercurtisfujitsu avatar act-ci-user avatar michaeltandy avatar

Watchers

James Cloos avatar Rob Dyke avatar Mark Symons avatar Rob Hughes avatar Fernando Ania avatar Andrew Benjamin avatar Liam Middleton avatar Tom Neale avatar Daniel Dowling avatar Alun Edwards avatar Stephen Wyatt avatar Ben Jeanes avatar Mike Kelly avatar Elizabeth Fatona avatar  avatar Jack Thomson avatar David Barwell avatar Bruce Smith avatar Mark Chambers avatar Muneeb Rahman avatar Darren Marshall-Sewell avatar Christopher Corday avatar ACT Continuous Integration User avatar Fernando Pinel 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.