barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.78k stars 364 forks source link

Support UTM coordinate format #347

Open barbeau opened 5 years ago

barbeau commented 5 years ago

Summary:

Now that we have multiple coordinate formats set up in https://github.com/barbeau/gpstest/pull/344 it wouldn't be too difficult to add more formats (pending the work to actually do the conversion).

Mentioned in https://github.com/barbeau/gpstest/issues/242#issuecomment-448498280:

The three I named plus UTM in the format

32U 461344 5481745

that is, zone, quadrat (which implicitly contains north/south), a space, then the “right value” (longitudinal part), a space, then the “up value” (latitudinal part) are common.

I don’t know of any other globally common formats, and local formats like Gauß-Krüger or British Ordnance are being replaced by UTM (at least in civilian use, authorities and emergency services are following slowly though AFAIK).

Steps to reproduce:

Go to Settings->Coordinate formats

Expected behavior:

Provide UTM as an option

Observed behavior:

UTM isn't an option

barbeau commented 5 years ago

Another user request for UTM:

Can you provide the option of the Coordinate position in UTM WSG84 format

GeoTools is an option, although it would be nice if we could find a way to support without including the GeoTools library.

barbeau commented 4 years ago

Our options are to either load a library to do this conversion, or call a web service.

GeoTools is a possible library: https://gis.stackexchange.com/questions/151565/what-simple-and-light-java-library-to-use-for-wgs84-to-utm-conversion

GeographicLib is another option:

Example web service: https://github.com/maptiler/epsg.io#api-for-trans

...but to call this in real-time would be intense, once-per-second for each device running GPSTest to convert as new positions are calculated.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

stale[bot] commented 2 years ago

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

barbeau commented 2 years ago

PROJ may be another option for this - https://proj.org/about.html

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

barbeau commented 1 year ago

Not stale

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

barbeau commented 6 months ago

Not stale