Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ogr2ogr to create midpoints along lines #19785

Closed
qgib opened this issue Oct 28, 2014 · 4 comments
Closed

Use ogr2ogr to create midpoints along lines #19785

qgib opened this issue Oct 28, 2014 · 4 comments
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Oct 28, 2014

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

@qgib
Copy link
Contributor Author

qgib commented Oct 29, 2014

Author Name: Giovanni Manghi (@gioman)


  • assigned_to_id was changed from Victor Olaya to Giovanni Manghi

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2014

Author Name: Andreas Neumann (@andreasneumann)


Do you actually want new point geometries or is it just necessary for symbology? In the latter case, there is the marker line in QGIS, by which you can position a marker on the mid-point of a line (term is "central point").

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2014

Author Name: Filipe Dias (@fsdias)


In this case, the actual geometries. In ecological surveys, it is quite common to plan surveys along line transects and to collect data in the middle, first or last quarter of the transect. This tool would be useful for that.

@qgib
Copy link
Contributor Author

qgib commented Jun 19, 2015

Author Name: Giovanni Manghi (@gioman)


already implemented.


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib added Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant