Select to view content in your preferred language

add 10 nearest random points around a target point to its attribute table

04-11-2021 04:31 AM
Labels (2)
New Contributor


for a statistical analysis I want to associate the 10 closest random points around my target points (cities) to the target points attribute table. I want to do this for multiple cities to afterwards get a mean distance of the city and its associated points to a target feature.



this is what I'd like the attribute table to look like. (excel just for visualisation). Has anyone made any experiences with this?

0 Kudos
2 Replies
MVP Esteemed Contributor

The closest you can get is Generate Near Table (Analysis)—ArcGIS Pro | Documentation

but usually for such an arrangement one uses scipy's cdist

scipy.spatial.distance.cdist — SciPy v1.6.2 Reference Guide

or one of my old posts using numpy's einsum

Generate Near Table for points - Esri Community


... sort of retired...
MVP Esteemed Contributor

Are you generating these random points yourself as part of this workflow, or do the random points already exist as a data set? 

0 Kudos