Skip to content
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

Apostrophe notation for elevations in feet #363

Open
1ec5 opened this issue May 11, 2024 · 0 comments
Open

Apostrophe notation for elevations in feet #363

1ec5 opened this issue May 11, 2024 · 0 comments

Comments

@1ec5
Copy link

1ec5 commented May 11, 2024

checkele() currently recognizes ft as the notation for feet within ele=*, converting it to meters:

/* sanitize ele: substitute "," by ".", ignore "m", convert "ft" to meter, check if ele >> Mount Everest */
if((strcmp(textrest,"ft")==0)||(strcmp(textrest," ft")==0)){ele=ele*0.3048;eleok=1;}

There is another notation for feet, ' (ASCII apostrophe), that is 40 times more common on length-related keys in general (including common keys such as height=*). The “Units” page on the wiki encourages the ##'##" notation and strongly discourages ft or in.

On the other hand, the ele=* documentation currently discourages unit specifications altogether. Despite this longstanding guideline, several major data consumers support both ft and ' for specifying elevations in feet. This proposal would codify that option for mappers. It doesn’t prefer one notation over the other, but perhaps you might consider adding support for ' for completeness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant