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

Improved Logic in getLetterDesignator #46

Merged

Conversation

DanielJDufour
Copy link
Collaborator

Reduced the lines of code in the getLetterDesignator function by basically creating an array of the latitude bands and calculating the index in that array by calculating how high from the bottom (-80 degrees) the latitude is.

It also includes an exception for Zone X, which is 12 degrees in height and continues to return 'Z' if the latitude is outside the latitude bands' ranges

@DanielJDufour DanielJDufour merged commit 1f116f4 into proj4js:master May 6, 2019
@DanielJDufour DanielJDufour deleted the SimplifyGetLetterDesignator branch May 6, 2019 21:10
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

Successfully merging this pull request may close these issues.

1 participant