-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offer proj style geographical coordinate formatting #3562
Comments
That should be doable. Are these formats also expected to be understood when reading data files? |
When I first thought of it, this was only meant as a more friendly way of formatting coordinates for human reading. But, it is
I dont mean to make this a big deal, so any ideas are welcome. Keep it simple. |
I guess this boils down to having a way of specifying different delimiters, which may be degrees (d), minutes (') or seconds ('') and optionally prefixing +/- or appending w/e/s/n. |
For time we have settings like FORMAT_DATE_IN where you can specify crazy input format, including Y2K-challenged data. We have no FORMAT_GEO_IN but internally we accommodate ±ddd:mm:ss.xxxx[letter]. So we are more flexible with geo data since both -123.5 and 123:30S will be parsed correctly, whereas with time data your input better match your FORMAT_DATE_IN setting. |
Missed approach in #5153. Closing. |
The FORMAT_GEO_OUT (https://docs.generic-mapping-tools.org/dev/gmt.conf.html#format-parameters) offers a range of combinations, but none of which conforms to the
proj
style, e.g. (https://proj.org/usage/projections.html#prime-meridian):What about adding an option, FORMAT_GEO_OUT=proj, that uses this kind of template? This format also calls for less ambiguity, which really is a great feature when it comes to coordinates.
When I come to think of it, this would really just be a modifier on top of the FORMAT_GEO_OUT-template. You would specify the formatting, and tell GMT to make it
proj
-style.The text was updated successfully, but these errors were encountered: