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

Pre conditions failing in Rectangle Implementation #173

Open
krishnaram opened this issue Feb 3, 2023 · 2 comments
Open

Pre conditions failing in Rectangle Implementation #173

krishnaram opened this issue Feb 3, 2023 · 2 comments

Comments

@krishnaram
Copy link

We want form rectangle from below values

x1:-608127936(-5097269)(-50.97269) x2:-601075968(-5038161)(-50.38161) y1:-1279040(-10721)(-1.0721) y2:859200(7202)(0.07202)
Lat/Long Entry:-0.10721,-50.97269 Exit:0.07202,-50.38161

We are getting this exception.

[2023-01-29T10:10:02.386Z] Caused by: java.lang.IllegalArgumentException
[2023-01-29T10:10:02.386Z] at com.github.davidmoten.guavamini.Preconditions.checkArgument(Preconditions.java:25)
[2023-01-29T10:10:02.386Z] at com.github.davidmoten.rtree.geometry.RectangleImpl.(RectangleImpl.java:12)
[2023-01-29T10:10:02.386Z] at com.github.davidmoten.rtree.geometry.RectangleImpl.create(RectangleImpl.java:25)
[2023-01-29T10:10:02.386Z] at com.github.davidmoten.rtree.geometry.Geometries.rectangle(Geometries.java:24)

Note: All rectangle geometry passing through equator means latitude is changing from -ve to +ve is failing for us.

@krishnaram
Copy link
Author

@davidmoten please help in this

@davidmoten
Copy link
Owner

Can't you tell from the Precondition? You appear to be using an old version, please try on latest, actual code useful for me please.

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