mirror of https://github.com/apache/lucene.git
LUCENE-10508: Use MIN_WIDE_EXTENT for GeoWideDegenerateHorizontalLine (#855)
This commit is contained in:
parent
6e6c61eb13
commit
0dad9ddae8
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue