New answers tagged line
I took the same style values as you, and it looks quite good: but it looks better with a svg symbol. With the standard > I get this: The saved style looks as follows: <renderer-v2 symbollevels="0" type="singleSymbol"> <symbols> <symbol alpha="1" type="line" name="0"> <layer pass="0" class="SimpleLine" ...
Well, this is not the perfect solution, but I created SVG marker with the required symbology. Then I set the needed interval and finally it works how I want!
The v.split.length function from GRASS should do exactly what you want by splitting the line into equal segments defined by the user without the need for a point layer. Here's a simple example of a straight line (it also works on non-straight and multiple lines): I added a column to calculate its length using $length in the expression: Using the ...
If a (somewhat manual) approach is fine for you, you could route from the start to the end point e.g. using the Road Graph plugin. Otherwise, you'd have to find a way to automatically detect where the start and end points are.
Do you mean connecting the endpoint of a line to the startpoint? This should help http://postgis.net/docs/ST_AddPoint.html.
The vertices function might help you, as documented in the GeoServer manual. I used this to show cadastral survey points.
The GRASS v.distance function does currently not work from QGIS Processing. See GRASS in QGIS not working (windows XP). You will have to run it through the GRASS plugin. Update: You could also try the NNJoin plugin. It provides an option to use the centroids of the geometries of polygon (or line) input layers. It may be slow for large datasets.
Top 50 recent answers are included