Wgs84 osgb36 java



Keywords: javascript, script, convert, latitude, longitude, ordnance, survey, grid, reference, utm, wgs84, osgb36, distance, surface, datum, data
Description: Easily convert between latitude/longitude, Universal Transverse Mercator (UTM) and Ordnance Survey (OSGB) references with PHP using the JScoord package.

Easily convert between latitude/longitude, Universal Transverse Mercator (UTM) and Ordnance Survey (OSGB) references with JavaScript using the JScoord package.

Conversion between latitude/longitude and grid references is not as simple as one would expect. Indeed, the maths involved is rather complex and not really for the faint-hearted! I have created a JavaScript script which provides a simple API to allow conversion between OSGB (Ordnance Survey of Great Britain) grid references, UTM (Universal Transverse Mercator) references and latitude/longitude. OSGB Grid references can be returned as a standard six-figure grid reference using the 100km grid square letters (e.g. SK619847).

The JScoord script also contains a function to allow the calculation of the surface distance between two points of latitude/longitude.

Looking for the same thing but with PHP or Java ? Translations of this package with the same functionality are available for PHP (see PHPcoord ) and Java (see Jcoord ).

The Ordnance Survey have published a concise guide on converting between OSGB and latitude/longitude which is available at www.gps.gov.uk.

Bear in mind that JScoord is still in development, so check back often for updates. To contact me about JScoord, send an e-mail to jscoord@jstott.me.uk.

JScoord contains the following features:
  • Calculate distance between a pair of latitudes and longitudes
  • Convert between an OSGB grid reference and latitude and longitude using either the OSGB36 or WGS84 data
  • Create objects representing OSGB grid references from a six-figure reference string (e.g. "TG514131")
  • Convert between UTM reference and latitude and longitude

The distance() function takes a reference to a LatLng object as a parameter and calculates the surface distance between the the given object and this object in kilometres:

Note that the OSGB-Latitude/Longitude conversions use the OSGB36 datum by default. The majority of applications use the WGS84 datum, for which the appropriate conversions need to be added. See the examples below to see the difference between the two data.

Note that the OSGB-Latitude/Longitude conversions use the OSGB36 datum by default. The majority of applications use the WGS84 datum, for which the appropriate conversions need to be added. See the examples below to see the difference between the two data.






Photogallery Wgs84 osgb36 java:


WGS84 | osedok


WGS84 | osedok


web mercator | osedok


QGIS | The Spatial Blog


postgis - QGIS with CH1903/LV03 and WGS84 layers - Geographic ...


Batch Tools


investigating software


Batch Tools


Training | The Spatial Blog


ArcGIS | The Spatial Blog | Page 4


Training | The Spatial Blog


Training | The Spatial Blog


SHIPWRECK LIST OF FLORIDA


ArcGIS | The Spatial Blog | Page 4


Cartometric Blog


investigating software


ESRI | The Spatial Blog | Page 4


SHIPWRECK LIST OF FLORIDA


ESRI | The Spatial Blog | Page 4