This tackles geo coordinates from yet another angle: How to model a geo position as POI (point of interest) and having a common format for it. And in the meantime geo json is the storage format for geo coordinates in mongo DB. There are point classes in there that can be used with degree/minute/second. But surely something different then your needs
Norbert
Hi Pierce & Richard,Thanks for your replies.On Wed, Dec 05, 2018 at 10:24:18AM +0800, Pierce Ng wrote:On Tue, Dec 04, 2018 at 10:21:20AM +0100, Alistair Grant wrote:
Does anyone know of a library for processing GPS coordinates?
What I'm looking for are things like:
- Parsing from and printing to various string formats (HMS, NESW, decimal)
- Distance between two points
- etc.
SQLite-based possibilities:
- Spatialite: https://www.gaia-gis.it/fossil/libspatialite/index
- R*Tree: https://sqlite.org/rtree.html
- GeoPoly: https://sqlite.org/geopoly.html
On Wed, Dec 05, 2018 at 06:44:35PM +1300, Richard O'Keefe wrote:As Dershowitz and Reingold showed in their book "Calendrical Calculations",
converting from UTC to several calendars needs latitude, longitude, and
elevation. ISO 6709 is the relevant standard:
https://en.wikipedia.org/wiki/ISO_6709
My camera uses D M S (0 deg 0' 0.00", 0 deg 0' 0.00") so I'll use thatinitially, but I'll definitely add links in the comments and make surethat support for other formats can be added.I'm not doing any database work at the moment (storing results in STONfiles for now), but will also add the links to the class comments.Thanks again,Alistair