4

I wanted to create start and endpoints in QGIS for a Linestring shapefile.

I tried using the QChainage plugin but was not useful.

Can someone suggest a tool? Image

9

You can also use a Virtual layer (Data Source Manager > Virtual Layer) with SQL:

select id, st_endpoint(geometry) as geometry from lineshp
union
select id, st_startpoint(geometry) as geometry from lineshp
  • 1
    Feel free to mark this answer as accepted if this answered your question the best. – MrXsquared Dec 29 '18 at 1:42
8

If you have QGIS 3.4 you can use Extract specific vertices tool to extract the endpoints by inputting 0, -1 at the vertex indices as you can see below:

enter image description here

The tool is located in Processing toolbox -> Vector geometry -> Extract specific vertices tool.

The input is a polyline composing of several segments

enter image description here

Using the above tool with 0,-1 indices provides the endpoints only:

enter image description here

3

You can use the GRASS tool v.to.points for this. Select node and adjust minimum distance.

0

There are also several possibilities from SAGA GIS with an application of modules:

Reference:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.