Skip to content

sgillies/coorblimey

 
 

Repository files navigation

coorblimey

Code Climate

circleci

What is it?

coorblimey is an open source Python3 library to transform geocentric coordinates to geographic, and vice versa.

Formulas for the calculations have been taken from:

Datums and Map Projections: For Remote Sensing, GIS and Surveying, Second Edition, by Jonathan IIiffe (Editor), Roger Lott.

Results were checked against this handy tool.

In it's present state...

... it only does the geocentric to geographic bit, and only has the ability to do this with either GRS80 or WGS84 ellipsoids.

It outputs latitude, longitude and height above ellipsoid. The precision of this for latitude and longitude is 10 decimal places. For height, to the millimetre.

Usage

You can either use this as a command line tool, or as a module to import into your Python programs.

As a command line tool...

python coorblimey.py -t to_geographic -x 1418595 -y -689557 -z -6159338 -e GRS80

This will print the results:

Geographic coordinates (GRS80)
lat: -75.7283616724, lon: -25.9236668699, h: 30.705

As a module to import...

from coorblimey.geocentrics import Geocentrics
    
geo      = Geocentrics(654321, 765433, 98765432, ellipsoid='GRS80')
latlongs = geo.make_geographic()

latlongs will be a list of [x, y, z].

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%