Skip to content

Commit b2be240

Browse files
committed
Correct geodetic scale denominator calculation
1 parent b6fd7db commit b2be240

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/org/mapfish/print/map

1 file changed

+1
-1
lines changed

core/src/main/java/org/mapfish/print/map/Scale.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public double getGeodeticDenominator(
201201
double width = 1;
202202
double geoWidthInches = getResolutionInInches() * width;
203203
double geoWidth = DistanceUnit.IN.convertTo(geoWidthInches, this.unit);
204-
double minGeoX = position.y - (geoWidth / 2.0);
204+
double minGeoX = position.x - (geoWidth / 2.0);
205205
double maxGeoX = minGeoX + geoWidth;
206206

207207
final GeodeticCalculator calculator = new GeodeticCalculator(projection);

0 commit comments

Comments
 (0)