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

1 degree == 1 metre according to units #68

Open
dzfranklin opened this issue Oct 20, 2020 · 0 comments
Open

1 degree == 1 metre according to units #68

dzfranklin opened this issue Oct 20, 2020 · 0 comments

Comments

@dzfranklin
Copy link

Because degrees have a value of 1, the following test passes

val degrees = Units.DEGREES
val metres = Units.METRES
val metresPerUnit = Units.convert(1.0, degrees, metres)
assertThat(metresPerUnit, `is`(1.0))

I expected that I could convert a number in metres into the unit of an arbitrary CRS with Units.convert. Instead, it appears from the source that I can only convert similar units, such as metric to metric or imperial to imperial.

Is this the indented behavior?

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