You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=========== ================
Meridian Longitude
=========== ================
greenwich 0dE
lisbon 9d07'54.862"W
paris 2d20'14.025"E
bogota 74d04'51.3"E
madrid 3d41'16.48"W
rome 12d27'8.4"E
bern 7d26'22.5"E
jakarta 106d48'27.79"E
ferro 17d40'W
brussels 4d22'4.71"E
stockholm 18d3'29.8"E
athens 23d42'58.815"E
oslo 10d43'22.5"E
=========== ================
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.
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.
Activity
PaulWessel commentedon Jun 30, 2020
That should be doable. Are these formats also expected to be understood when reading data files?
anbj commentedon Jul 1, 2020
When I first thought of it, this was only meant as a more friendly way of formatting coordinates for human reading. But, it is
proj's (default) way of outputting coordinates, so if GMT does support it for input as well, it would be nice.projdoes support different styles of input so I dont know how this may complicate things, e.g. (https://proj.org/apps/cs2cs.html#using-proj-strings):I dont mean to make this a big deal, so any ideas are welcome. Keep it simple.
anbj commentedon Jul 6, 2020
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.
PaulWessel commentedon Jul 6, 2020
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.
anbj commentedon Feb 15, 2023
Missed approach in #5153. Closing.