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

IllegalStateException is not defined #469

Closed
quachc opened this issue Jul 1, 2022 · 3 comments
Closed

IllegalStateException is not defined #469

quachc opened this issue Jul 1, 2022 · 3 comments

Comments

@quachc
Copy link

quachc commented Jul 1, 2022

We see this reference error being thrown from: LineSegment#pointAlongOffset (jsts/src/org/locationtech/jts/geom/LineSegment.js:202:22)

@bjornharrtell
Copy link
Owner

Can you supply a failing test case?

quachc pushed a commit to quachc/jsts that referenced this issue Jul 4, 2022
@quachc
Copy link
Author

quachc commented Jul 4, 2022

@bjornharrtell
Copy link
Owner

@quachc IllegalStateException was not correctly implemented, fixed by 5f866f9.

However, your test case is with input that is intended to fail which is the reason that it wants to throw IllegalStateException. I'm pretty sure it works in latest release with valid data (i.e segment cannot be zero length).

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

2 participants