Skip to content

More FORMAT_GEO_MAP/OUT format options #5153

Open

Description

@KristofKoch

Description of the desired feature

Currently the formatting options for geographic coordinates offers quite a few options but might benefit from some more.

Allow F and G in front of string

Currently the WESN sign is only allowed after the numbers. I could make good use of them in front of the numbers as well.

Current behaviour:

ddd:mm:ss[F|G] -> 52°37'19"N or 52°37'19" N

Proposed addition:

[F|G]ddd:mm:ss -> N52°37'19" or N 52°37'19"

The proposed leading F option is common in aviation context.

Leading/trailing Zeroes

In aviation usually all places of a coordinate are written even if they are zero. This is done to make sure not digit is accidentally missing. To my knowledge currently single digit degree latitude and single or double digit degree longitude can only be written as 1°N, 3°E, 47°W and not as 01°N, 003°E, 047°W. Similar with arc minutes and seconds. They are only plotted if not zero.

Current behaviour (three degrees north latitude, nine degrees west longitude):

ddd:mm:ssF -> 3°N, 9°W

Proposed addition:

DDD:MM:SSF -> 03°00'00"N, 009°00'00"W

While you might have even better ideas how to implement this I found capitalising the letters quite nice as it maintains backwards compatibility

Both proposals together

FDDD:MM:SS -> W009°00'00"

Activity

  1. added
    feature request
    on Apr 18, 2021
  2. self-assigned this
    on Apr 18, 2021
  3. added this to the Future release milestone on Apr 18, 2021
  4. PaulWessel commented on Apr 18, 2021

    @PaulWessel
    Contributor

    These are good suggestions, @KristofKoch. Once EGU is over etc I will have a look if your syntax is the best option or not, but I agree with the functionality. 6.3 though.

  5. anbj commented on Apr 20, 2021

    @anbj
    Contributor

    PS! #3562

  6. KristofKoch commented on Jan 11, 2023

    @KristofKoch
    ContributorAuthor

    I found myself needing the W009°00'00" output format again and was about to write a feature request – turns out I wrote one already.

    Is this still considered a useful addition?

  7. PaulWessel commented on Jan 12, 2023

    @PaulWessel
    Contributor

    Obviously this got lost in the shuffle when there are too many issues pending. I will refresh my memory of how this could be done.

  8. KristofKoch commented on Jan 12, 2023

    @KristofKoch
    ContributorAuthor

    Good morning Paul, thank you for looking into this again. No worries, it is nothing a visit to a vector graphics program can't fix. It is just tedious work doing it manually.

  9. added a commit that references this issue on Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions