Sunday, 10 December 2017

Plugin for average distance from node to polyline in QGIS?



Is there a plugin available that will calculate this?


EDIT 1:


The red polyline is the average distance of the point to the black polyline. The red polyline is what I want to display. Alternatively, is there something which would calculate the radius of the circle so I can use a buffer?


enter image description here



Answer



Using QGIS and GRASS, this should be doable:



  1. Split the line using v.segment

  2. Add the point you want to calculate avg distance for

  3. Use QGIS "Distance Matrix"


  4. The last column in the matrix should contain all distances. You just need to calculate the mean.


I'm sure there is a GRASS alternative to distance matrix (v.distance?). As far as I know, there is no equivalent to v.segment in QGIS yet.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...