We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sexagesimalToDecimal
isSexagesimal
Converting 51°58'46.70"O to decimal, using both toDecimal and sexagesimalToDecimal throws the following error:
51°58'46.70"O
toDecimal
Error: Given value is not in sexagesimal format at sexagesimalToDecimal (sexagesimalToDecimal.js:1) at Object.toDecimal (toDecimal.js:1)
However, using geolib.isSexagesimal("51°58'46.70\"O") returns true.
geolib.isSexagesimal("51°58'46.70\"O")
EDIT: So, I just found out that my sexagesimal had a white space at the beginning, and the isSexagesimal trims the input value.
The text was updated successfully, but these errors were encountered:
bugfix: ignore whitespaces in sexagesimal patterns. fixes #254
47850ea
release: 3.3.3 - 2021-10-11T15:43:29.800Z [skip ci]
35ac298
### [3.3.3](v3.3.2...v3.3.3) (2021-10-11) ### 🔧 Fixes * ignore whitespaces in sexagesimal patterns. fixes [#254](#254) ([47850ea](47850ea)) * increase accuracy ([2a7b443](2a7b443)) * Merge pull request [#278](#278) from PaulCapron/patch-1 ([3827a8f](3827a8f))
🎉 This issue has been resolved in version 3.3.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Converting
51°58'46.70"O
to decimal, using bothtoDecimal
andsexagesimalToDecimal
throws the following error:However, using
geolib.isSexagesimal("51°58'46.70\"O")
returns true.EDIT: So, I just found out that my sexagesimal had a white space at the beginning, and the
isSexagesimal
trims the input value.The text was updated successfully, but these errors were encountered: