Code Monkey home page Code Monkey logo

ostn15-matlab's Introduction

OSTN15-Matlab

An implementation of Ordnance Survey conversion from OSGB36 to WGS84. For MATLAB use, but can be changed into general use

This tool converts coordinates between ETRS89 (WGS84, GPS) lat/lon/elevation and OSGB36 easting/northing/elevation.

Conversions make use of Ordnance Survey's OSTN15 and OSGM15 transformations, and should thus be accurate to within 1m. Usage:

  • [eas,nor,hei] = OSTN15_Matlab('gps-to-grid',lat,lon)\ converts matrices of ETRS89 to OSGB36 and checks LIDAR DSM heights data in ./LIDAR . If no data available hei will be -9999.
  • [lat,lon] = OSTN15_Matlab('grid-to-gps',eas,nor)\ converts matrices of OSGB36 to ETRS89.
  • OSTN15_Matlab('gps-to-grid',filename)\ converts a batch of data in filename from ETRS89 to OSGB36 and checks LIDAR DSM heights data in ./LIDAR . If no data available hei will be -9999, outputing to filename-output.csv and filename-raw.csv .
  • OSTN15_Matlab('grid-to-gps',filename)\ converts a batch of data in filename OSGB36 to ETRS89, outputing to filename-output.csv.
  • OSTN15_Matlab('test')\ checks embedded data integrity and runs conversion tests with known coordinates.
  • OSTN15_Matlab\ displays this message, and runs a test.

In the batch conversion case:

  • Input rows must have 2 columns -- lat or easting, lon or northing, with comma separator
  • Output rows have 3 columns -- easting or lat, northing or lon, elevation(if from gps to grid), separated with commas. If no elevation data available, elevation returns -9999. At eas-nor mode, a heading line tells which block the point is in. This helps to decide which LIDAR data file to download
  • In case of out-of-range input coordinates, all output columns will be zero
  • Malformatted input leads unexpected output

Software copyright (c) Tony Chen 2018

Released under the MIT licence (http://www.opensource.org/licenses/mit-license.php)

OSTN15 and OSGM15 are trademarks of Ordnance Survey

Embedded OSTN15 and OSGM15 data (c) Crown copyright 2015. All rights reserved.

LIDAR Data uses 1m DSM data at best. LIDAR data use under the Open Government Licence v3.0 of Environmental Agency, GB Govt.

LIDAR DSM-1m

ostn15-matlab's People

Contributors

toni-chan avatar

Stargazers

 avatar

Watchers

 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.