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

Marker line - Negative Line offset moves symbol to the other endpoint #21836

Closed
qgib opened this issue Nov 12, 2015 · 4 comments
Closed

Marker line - Negative Line offset moves symbol to the other endpoint #21836

qgib opened this issue Nov 12, 2015 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Nov 12, 2015

Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 13811
Affected QGIS version: 2.8.3
Redmine category:symbology
Assignee: Sandro Santilli


To reproduce:

  1. New project
  2. Add a simple (2 vertices) LINESTRING -- for example with QuickWKT plugin
  3. Go to layer properties, Style TAB
    3.1. add Marker line, set "on last vertex only" and "Rotate marker" (should be already set)
    3.2. pick an arrow as "Simple marker"
    3.3. Change "Line offset" field in Marker placement to a negative number and see how it moves the arrow to the first vertex (from last)

This is likely a misues of GEOS OffsetCurve which is known to return a reversed line on negative offsets

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2015

Author Name: Sandro Santilli (@strk)


Confirmed, I've a working patch. While testing it I also found that an offset of -0.0 (negative zero) makes the symbol disappear

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2015

Author Name: Sandro Santilli (@strk)


Patch staged here: #2442
If anyone has pointers to add a testcase I think it would be worth it (symbols often break).
Also, I couldn't check if the bug is still present in master.

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2015

Author Name: Sandro Santilli (@strk)


confirmed also master is affected. I'm working on an automated testcase.

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2015

Author Name: Sandro Santilli (@strk)


Fixed in changeset "824fd7bf32a45e278f2ec2fe9fa1c7228c9fb27f".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 25, 2019
@qgib qgib closed this as completed 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! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant