scalebar¶
Note
Starting with MapServer 9.0, when the map has a declared CRS, scalebar distances are measured geodesically on its ellipsoid using a horizontal sample centered on the map. The result represents the local horizontal scale at the map center and may differ from scalebars rendered by earlier releases, especially in distorted projections. Maps without a CRS retain Cartesian measurement. If a declared CRS cannot be used for geodesic measurement, scalebar rendering fails instead of falling back to Cartesian measurement.
Purpose¶
Creates a scalebar image from a mapfile. Output format of the image (such as PNG, JPEG, etc.) depends on your defined IMAGETYPE in your mapfile.
Syntax¶
scalebar [mapfile] [output image]
