Skip to content
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

Closed
qgib opened this issue Jun 10, 2014 · 7 comments
Closed

Label: line geometry labels drawn to wrong location when CRS transformed #18936

qgib opened this issue Jun 10, 2014 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering

Comments

@qgib
Copy link
Contributor

qgib commented Jun 10, 2014

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


@qgib
Copy link
Contributor Author

qgib commented Jun 10, 2014

Author Name: Giovanni Manghi (@gioman)


On Linux/master I cannot seen any particular difference, see attached images


  • status_id was changed from Open to Feedback
  • 7397 was configured as 53.png
  • 7399 was configured as 38.png
  • 7398 was configured as 05.png
  • category_id was configured as Labelling

@qgib
Copy link
Contributor Author

qgib commented Jun 10, 2014

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.


  • 7405 was configured as EPSG3047.png
  • 7404 was configured as EPSG4326.png

@qgib
Copy link
Contributor Author

qgib commented Jun 11, 2014

Author Name: Giovanni Manghi (@gioman)


Simo Aro wrote:

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.

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).


  • 7410 was configured as 57.png
  • os_version was changed from 10.8.5 to
  • operating_system was changed from Mac OS X to
  • 7409 was configured as 34.png

@qgib
Copy link
Contributor Author

qgib commented May 21, 2015

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from Labelling to Map Canvas

@qgib
Copy link
Contributor Author

qgib commented May 21, 2015

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR

Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • resolution was changed from to end of life
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant