Bug report #5183
Scale bar has wrong units for GeoJSON layer
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Windows 64-bit||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||not reproducable|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||14926|
If I import a GeoJSON file as a layer in a new project, the scale bar shows units as "CM" and the bar length/distance does not correctly map to features in the map.
Using the Measure Line GUI tool does give the correct distances (in meters/kilometers).
I have set project properties layer units to meters and the CRS to WGS 84 / EPSG:4326.
The layer property also has EPGS:4326 - WGS 84 as the CRS.
When I change the layer style unit to map (from Millimeter), the a diamond is then displayed (the polygon in the file is a rectangle) in black. This behavior does not make sense.
I've attached a sample GeoJSON file. The cooordinates are expressed as degrees in decimal format. The GeoJSON spec describes a couple of ways of specifying the CRS. Neither way changes QGIS behavior. http://www.geojson.org/geojson-spec.html#coordinate-reference-system-objects
Using 1.7.4-Wroclaw 411aff6 on Windows 64-bit.