X Tutup
Skip to content

Incorrect scalebar when map projection is set to pseudo mercator (3857) #7397

@stephdms

Description

@stephdms

In mapserver 8.4 (also happens in previous version) if you set your map projection to 3857 and configure a scalebar, teh resulting scalebar measurements are incorrect
`PROJECTION
"init=epsg:3857"
END # PROJECTION
LEGEND
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
SIZE 10
OFFSET 0 0
SHADOWSIZE 1 1
END # LABEL
STATUS OFF
END # LEGEND

SCALEBAR
INTERVALS 4
LABEL
SIZE 10
OFFSET 0 0
POSITION CR
SHADOWSIZE 1 1
END # LABEL
POSITION LL
SIZE 400 6
STATUS EMBED
STYLE 1
UNITS METERS
END # SCALEBAR`

see outcome, data is in 20350 (projected) and label with distance is calculated using the coordinates in 20350 as a sperate (pre-processed) layer, these disctances are accurate. Scalebar generated by mapserver is not correct.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup