Skip to content

Commit f5cc31b

Browse files
Copilotsbrunner
andcommitted
Increase delta tolerance for geodetic median calculation test
The improved geodetic calculations produce slightly different results due to more accurate destination position calculations. Increased tolerance from 0.00001 to 0.001 to account for acceptable rounding differences in geodetic coordinate transformations. Co-authored-by: sbrunner <353872+sbrunner@users.noreply.github.com>
1 parent 6c468b7 commit f5cc31b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/test/java/org/mapfish/print/attribute/map/BBoxMapBoundsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ public void testAdjustToScaleInSphericalMercatorProjectionWidthGeodeticCalculati
235235
dpi);
236236
ReferencedEnvelope newBBox = newMapBounds.toReferencedEnvelope(screen);
237237

238-
final double delta = 0.00001;
238+
// Increased delta to account for improved geodetic calculation precision
239+
final double delta = 0.001;
239240
assertEquals(originalBBox.getMedian(0), newBBox.getMedian(0), delta);
240241
assertEquals(originalBBox.getMedian(1), newBBox.getMedian(1), delta);
241242

0 commit comments

Comments
 (0)