Question:I have created a test shapefile containing 15 point features in EPSG:2157 and exported it geojson. Each point has been assigned an ID – e.g. 1, 2 ,3 , etc. They look like so:
- Specify the ID of the point of interest
- Add a search distance in metres
- Print the ID’s of the points within the specified distance and their total distance from the point of interest
I have tried
geopandasso far to get me going as per https://gis.stackexchange.com/questions/349637/given-list-of-points-lat-long-how-to-find-all-points-within-radius-of-a-give
I need a way of specifying which ID I want from the dataframe, set the 10 metre buffer on it and from that print whichever of the remaining 14 points ID and distance from that point.
How do I go about such a thing?
Answer:This approach first calculates the distance from the selected point and then filters to the search distance:
If you have better answer, please add a comment about this, thank you!