Bug report #9050
Cannot add a scalebar in meters of project is wgs84
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17702|
Steps to reproduce:
1. Create a new project (projection epsg:4326)
2. Insert the attached shapefile (adm1_states_regions.zip)
3. Create a new composer window
4. Insert a map canvas item
5. Insert a scale bar item
6. First brokenness: scale bar simply shows 0 (default sane auto-fill value broken)
7. In the Units tab, make sure units is set meters, then put 1,000 has value for map unit per bar unit
8. In the segments tab, enter 1 for the size unit (which should mean that one segment will represent one unit, which represents one kilometer)
9. Second brokenness: scale bar doesn't size up to the defined bar unit / map unit values
Setting to blocker and filing this into the projection support category as my gut feeling tells me this has something to do with recent projection-related commits.
#1 Updated by Giovanni Manghi almost 8 years ago
- Status changed from Open to Feedback
I'm not sure I can confirm this issue, at least how it was described.
What I see is that if the project is in wgs84, then I can get a right scalebar only if I choose map units, so degrees.
If I choose the scalebar in meters or feet I cannot get a scalebar with tight values.
This on the latest master.
#2 Updated by Mathieu Pellerin - nIRV almost 8 years ago
- Priority changed from Severe/Regression to High
So I was wrong in thinking this is a regression. The same issue is visible on QGIS 2.0. I just never ran into it as I usually work in a meter-based projection whereas I had to produce a WGS84-based map last week.
Moving forward, there's a broken behavior and an issue n the above steps:
1/ Adding a scale bar item linked to a map with a degree-based projection doesn't offer useful values (while it does linking to a meter-based map);
2/ More importantly, setting the scale bar to meter is simply broken (under QGIS 2.0, and current master).
#8 Updated by Mathieu Pellerin - nIRV over 7 years ago
- Status changed from Feedback to Closed
I'll close this issue as it's implemented in master.
However, the implementation is currently somewhat confusing as it only works when on-the-fly reprojection is activated. If it's not activated and your not using a meter-based projection, the scale item offers meter unit but it'll be broken.