-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Label: line geometry labels drawn to wrong location when CRS transformed #18936
Comments
Author Name: Giovanni Manghi (@gioman) On Linux/master I cannot seen any particular difference, see attached images
|
Author Name: Simo Aro (Simo Aro) Giovanni Manghi: This seems to affect certain parts of the world more. Please try this location (WGS84): Coordinate: 29.3,62.52 at scale 1:25,000 After pointing to that location, then switch to some other CRS, such as "ETRS89 / ETRS-TM35". Please see attached screen captures for "before" and "after" effect.
|
Author Name: Giovanni Manghi (@gioman) Simo Aro wrote:
actually I think there is something fishy with the data or with the qgis reprojection, see attached images: *) I made a copy of you json layer as a shape and transformed it to 3067 along the way. In the picture you see that the project is in 4326 and reprojection is on, so the two versions of the same layer are expected to overlap, and there are lines that do, but others don't. *) if you then change the project CRS to 3067 and eave reprojection ON you will see that the labels (of your original json layer) are placed where the lines of the shapefile are. So my first gut feeling is that the labels are placed in the right place, but I can't understand why saving your layer in another one with a different CRS then result in just a few features to be in the same place as the original ones (when reprojection is ON).
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) End of life notice: QGIS 2.18 LTR Source:
|
Author Name: Simo Aro (Simo Aro)
Original Redmine Issue: 10526
Affected QGIS version: master
Redmine category:map_canvas
Steps to reproduce the issue: Create new project. Drag attached GeoJSON file to layers panel. Add labels to layer with field 'name'.
Labels are diaplayed properly, all with the same distance from the line geometry.
Next, click the "CRS status" icon on the lower right corner, the "Project properties | CRS" window opens. Now, click "Enable 'on the fly' CRS transformation" checkbox and choose any transformation from the list, such as "Google Mercator" (ESPG:900913) or "ETRS89 / ETRS-TM35FIN" (ESPG:3067). Now click "OK".
The end result is that some labels are now displaced from the line geometry they belong to (see attached screen capture - the issue is evident). This issue seems to have greater effect the longer the line geometry is and the greater the zoom level is.
This bug seems to affect at least versions 2.2.0-Valmiera and 2.3.0-Master
The text was updated successfully, but these errors were encountered: