Skip to content

Pre conditions failing in Rectangle Implementation #173

@krishnaram

Description

@krishnaram

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions