Deltares / Ribasim

Water resources modeling
https://deltares.github.io/Ribasim/
MIT License
36 stars 5 forks source link

Improve QGIS QgsMarkerLineSymbolLayer in Ribasim-plugin #1562

Closed DanielTollenaar closed 1 week ago

DanielTollenaar commented 1 week ago

With multi-vertice LineStrings arrow-symbol becomes unreadible Currently Ribasim Plugin places arrow-marker at the center of every line-segment. With multi-vertice Linestrings (river axis in stead of links) direction becomes unreadible: image

Why You're placing an arrow at every segment in stead of the centre point

How Replace SegmentCenter by CentralPoint. So this https://github.com/Deltares/Ribasim/blob/4e7ea0e87aa65852195208cf8ac2d22d0dd0211a/ribasim_qgis/core/nodes.py#L325

with:

....
QgsMarkerLineSymbolLayer.create({"placements": "CentralPoint"}),
....

End result Simply beautifull :-) image

visr commented 1 week ago

Ah yes, this would be great to have. If you make a quick PR this can still make it into the release ;)

DanielTollenaar commented 1 week ago

Ah yes, this would be great to have. If you make a quick PR this can still make it into the release ;)

see #1563