Bug report #21625
Scalebar display is wrong when working with different geographic coordinate systems
|Affected QGIS version:||3.6.0||Regression?:||No|
|Operating System:||Ubuntu||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29441|
working with latlong coordinates, I've noticed that scalebar display of QGIS (3.6.0) is wrong when changing from WGS84 ellipsoid to, for example, Mars (GCS_Mars_2000 in the CRS list).
To replicate this, find attached a 10x10 1-degree latlon grid in GML format. Spacing between 1-degree meridians at equator and between parallels should be around 111km for WGS84.
Changing the SRS to GCS_Mars_2000 the same 1-deg distance should be around 59km, using the QGIS distance tool the measure is correctly displayed, but the scalebar is wrong (see the screenshot attached).
It seems that scalebar display keeps using WGS84 when working with different geographic coordinate systems, while the measuring tool seems to work.