GenericMappingTools / GenericMappingTools/gmt

More FORMAT_GEO_MAP/OUT format options

Open
#5,153 5 comments 0 reactions 1 assignee Claimed by @PaulWessel View on GitHub
feature request
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

**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"`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.