-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
wrong direction of label direction symbol #13702
Comments
Author Name: Marco Hugentobler (@mhugent) Is this only for vertical lines or for others too? Could you attach a small testdataset to reproduce the problem? |
Author Name: Sandro Santilli (@strk) Seems to be vertical lines only. |
Author Name: Sandro Santilli (@strk) In particular, edges with id 5 and 7 of qgisbug3543_1.zip are disagreed upon between label and line decoration. They are both going down, so line decoration is correct and label orientation symbol is wrong. |
Author Name: Sandro Santilli (@strk) I'd add that the original testcase only contained lines oriented from bottom up, which may explain why this case wasn't cought. |
Author Name: Sandro Santilli (@strk) The attached patch (bug3643.diff) fixes it for me, for both datasets. |
Author Name: Sandro Santilli (@strk) A slightly more elegant version:
|
Author Name: Sandro Santilli (@strk) Even smaller is just moving re-adding the equal sign but to the right part:
Works fine in my case, altought the equality comparison between the return from atan2 and M_PI/2 looks scary (miracles!) This final version seems to be the closest to the original code, where the equal sign was in the first rather than second side of ||. |
Author Name: Sandro Santilli (@strk) Great. I confirm the fix. You can close the grave now :) |
Author Name: Mayeul Kauffmann (@mayeulk) Hi,
I would strongly suggest solution 1. This would allow to follow a frequent cartographic convention for contour lines: put number written uphill (see attached screenshot): this is used on all official French topographic map by the IGN. This seems logical even just by reading the QGIS dialog box: "Orientation"
|
Author Name: Mayeul Kauffmann (@mayeulk)
|
Author Name: Mayeul Kauffmann (@mayeulk)
|
Author Name: Sandro Santilli (@strk) Gah. I confirm this is still broken. First of all direction symbol is only shown with with "parallel" placement (nothing shown with "curved" or "horizontal"). Second, the bug is still there when orientation is "line" rather than "map".
|
Author Name: Sandro Santilli (@strk) How do we reopen this bug ? I personally can't change the "Status" field. |
Author Name: Sandro Santilli (@strk) I don't really get the meaning of "Map" vs. "Line" orientation, btw |
Author Name: Sandro Santilli (@strk) The following changes since commit 59be561: are available in the git repository at: git@github.com:strk/Quantum-GIS.git dirsym Sandro Santilli (1): src/core/pal/feature.cpp | 5 ++--- |
Author Name: Sandro Santilli (@strk) Fix pushed to master as r697b35a4.
|
Author Name: Martin Dobias (@wonder-sk) Reopening: the fix in 697b35a disables the option to set the orientation of the label to be dependent on line direction.
|
Author Name: Sandro Santilli (@strk) I'm not seeing that from the logs ? |
Author Name: Martin Dobias (@wonder-sk) Fixed in c37b63a, better variable naming and added some comments
|
Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 3643
Redmine category:symbology
Assignee: Marco Hugentobler
As you can see in the attached image, the "direction symbol" added by the label disagrees with the "direction symbol" of the line decoration.
I know the line decoration (the endpoint arrow) is correct.
Note that line decoration was fixed by r15076 (see #13494) so a similar approach could be just copied over
The bug occurs with r11539 on a x84-64
The text was updated successfully, but these errors were encountered: