Use ogr2ogr to create midpoints along lines #19785
Labels
Feature Request
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Milestone
Author Name: Filipe Dias (@fsdias)
Original Redmine Issue: 11515
Redmine category:processing/gdal
Assignee: Giovanni Manghi
Following this blog post by Darren Cope, I found it is possible use ogr2ogr to create midpoints along a line using ogr2ogr. For example:
ogr2ogr OutputPoints.shp InputLines.shp -dialect sqlite -sql “SELECT AsText(Line_Interpolate_Point(InputLines.geometry, 0.5)),OTHER,FIELDS,CAN,GO,HERE from InputLines”
http://darrencope.com/2014/01/27/create-midpoints-along-lines-with-ogr/
It would be a valuable addition to Processing, since there's not equivalent algorithm available
The text was updated successfully, but these errors were encountered: