Just for the record. I have a GeoJSON (http://geojson.org/) package at https://github.com/noha/geo-json/
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 > Am 05.12.2018 um 08:34 schrieb Alistair Grant <akgrant0...@gmail.com>: > > 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 that > initially, but I'll definitely add links in the comments and make sure > that support for other formats can be added. > > I'm not doing any database work at the moment (storing results in STON > files for now), but will also add the links to the class comments. > > Thanks again, > Alistair > >