Skip to content

Commit

Permalink
fix test testValidateIntersectsWithAntimeridian()
Browse files Browse the repository at this point in the history
Signed-off-by: qGYdXbY2 <[email protected]>
  • Loading branch information
qGYdXbY2 committed Jan 20, 2025
1 parent a430120 commit 76f1cfd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public void testValidateNullGeometry(){
@Test
public void testValidateIntersectsWithAntimeridian() throws InvalidGeometryException {
LineStringCoordinates coordinates = new LineStringCoordinates();
coordinates.add(new Position(0, 0));
coordinates.add(new Position(0, 1));
coordinates.add(new Position(179.999999, 0));
coordinates.add(new Position(179.999999, 1));

//Geometry filter intersects with anti meridian!
Assertions.assertThrows(GeometryException.class, () -> GeometryValidator.validateGeometry(new LineString().withCoordinates(coordinates), 100));
Expand Down

0 comments on commit 76f1cfd

Please sign in to comment.