Skip to content

Commit 52dae9e

Browse files
authored
Merge pull request #1114 from szekerest/scalebar-geodesic-measurement-update3
Document automatic geodesic scalebar measurement (#7397)
2 parents f28017c + 9e965ec commit 52dae9e

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

‎en/mapfile/scalebar.txt‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99

1010
.. note::
1111

12-
MapServer supports only cartesian distances (straight-line distance measured
13-
on a flat surface), it does not convert distances into an ellipsoidal
14-
distance (measured on a spherical shape).
12+
Starting with MapServer 9.0, when the map has a declared CRS, scalebar
13+
distances are measured geodesically on its ellipsoid using a horizontal
14+
sample centered on the map. The result represents the local horizontal
15+
scale at the map center and may differ from scalebars rendered by earlier
16+
releases, especially in distorted projections. Maps without a CRS retain
17+
Cartesian measurement. If a declared CRS cannot be used for geodesic
18+
measurement, scalebar rendering fails instead of falling back to Cartesian
19+
measurement.
1520

1621
Scalebars currently do not make use of TrueType fonts. The size of the
1722
scalebar image is NOT known prior to rendering, so be careful not to

‎en/utilities/scalebar.txt‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99

1010
.. note::
1111

12-
MapServer supports only cartesian distances (straight-line distance measured
13-
on a flat surface), it does not convert distances into an ellipsoidal
14-
distance (measured on a spherical shape).
12+
Starting with MapServer 9.0, when the map has a declared CRS, scalebar
13+
distances are measured geodesically on its ellipsoid using a horizontal
14+
sample centered on the map. The result represents the local horizontal
15+
scale at the map center and may differ from scalebars rendered by earlier
16+
releases, especially in distorted projections. Maps without a CRS retain
17+
Cartesian measurement. If a declared CRS cannot be used for geodesic
18+
measurement, scalebar rendering fails instead of falling back to Cartesian
19+
measurement.
1520

1621
Purpose
1722
-------

0 commit comments

Comments
 (0)