LUCENE-10508: Use MIN_WIDE_EXTENT for GeoWideDegenerateHorizontalLine (#855)

This commit is contained in:
Ignacio Vera 2022-04-29 10:21:08 +02:00 committed by GitHub
parent 6e6c61eb13
commit 0dad9ddae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class GeoWideDegenerateHorizontalLine extends GeoBaseBBox {
if (extent < 0.0) {
extent += 2.0 * Math.PI;
}
if (extent < Math.PI) {
if (extent < GeoWideRectangle.MIN_WIDE_EXTENT) {
throw new IllegalArgumentException("Width of rectangle too small");
}