3

I have a vector file containing thousands of points. Where points are within x distance from each other, I wish to delete one of the points and keep the other (either by snapping to one point, or simply erasing one of the two points)

However, in Whitebox the vector cleaning tool only works with polygons and lines.

Is there some other way I can do this with my shapefiles? Can be in any opensource software

Thanks

  • 1
    have a look at this tutorial:qgis.spatialthoughts.com/2013/04/… Compute the NN for each point, join and then delete all points below a treshold. – Curlew Sep 23 '13 at 17:15
  • 1
    Yes I have tried this, and it works to a certain extent. My only problem is, once I have my set of points with distances in the attribute table - I am given two neighbours with the same distance value, I am looking for a way that will delete only one of these points (there are thousands, so to do so manually would take too long). Is there a possibility I could select one of each pair of values below a certain threshold using the 'select features using an expression' tool I wonder? – Rob Lodge Sep 24 '13 at 7:49
2

I followed Curlew's suggestion and computed the nearest neighbour analysis, joining the table to layer. Then simply exported to excel, sorted and selected by distance and then deleted duplicates via Data>delete duplicates! cheers

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.