[Qgis-user] Symbol lines every km, moving when changing scale or moving map

Raymond Nijssen r.nijssen at terglobo.nl
Thu Feb 18 08:17:22 PST 2021


Yes, I recognize that behaviour. I think QGIS cuts the line at the map 
canvas border and starts calculating point locations from the cut off 
point. Probably to prevent calculating all points outside the map that 
won't be visible anyway.

This is good when you just want a hatched line or a row of circles or 
something. But when visualizing a marker at every km of your cycle route 
it is a bad idea.

I think the workaround is in using a geometry generator instead.

Raymond


On 17-02-2021 13:23, Prud'homme Jérémie wrote:
> Hello,
> 
> Does anyone can tell me if the behavior is normal or if it is not 
> working as expected ?
> 
> 
> Jérémie.
> 
> 
> Le mar. 12 janv. 2021 à 21:33, Prud'homme Jérémie <p.jeremie at gmail.com 
> <mailto:p.jeremie at gmail.com>> a écrit :
> 
>     Hi,
> 
>     I'm using QGIS 3.10.
> 
>     I tried to use only symbology to display a stroke every km along a road.
>     The project CRS is 2154 (Lambert 93).
> 
>     When adding a ""symbol line" with an interval of 1000 map units
>     (meter for 2154) – or 1000 meters at scale, same result – I achieve
>     to display symbols every km.
> 
>     Problem is when I move the map or change scale, the symbols do not
>     always stay in place. They are sometimes misplaced.
> 
>     I've been told that problem can be that the first node of the line
>     is not always the reference to calculate the intervals.
> 
>     You can find a GIF here that displays my problem :
>     https://zupimages.net/viewer.php?id=21/02/nvr2.gif
> 
>     Circles are symbols via Symbology.
>     Strokes are symbos on points generated vith the tool "Points along
>     geometry".
> 
>     You can see that circles are not always at the same place as the
>     strokes.
> 
>     Is it a "normal" behavior ?
>     <https://zupimages.net/viewer.php?id=21/02/nvr2.gif>
>     Anyway as a user I would expect that symbols are always generated at
>     the same place from the starting node.
> 
>     Thanks for your enlightments on this.
> 
>     Jérémie.
> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 


More information about the Qgis-user mailing list