Select to view content in your preferred language

Near Analysis logic for lines if they intersect multiple polygons?

921
2
Jump to solution
01-18-2024 12:54 PM
SachinChand
Regular Contributor

I'm trying to figure out how the near analysis tool works when conducted for an input line feature class and polygons for the near feature class. If the line intersects multiple polygons it seems completely random as far as which polygon is selected as the near feature. Is it so? I thought it might be the polygon nearest to the midpoint of the line or maybe the polygon that covers more of the line but neither logic seems to be the case. I'm using both ArcMap 10.8 and AGS Pro 2.9.

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

You might want to go through

How proximity tools calculate distance—ArcGIS Pro | Documentation

for example, the word "random" does appear

Multiple features may be equally closest to another feature. When this occurs, one of the equally closest features is randomly selected as the closest.

Consider the help topic contents in light of your findings


... sort of retired...

View solution in original post

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

You might want to go through

How proximity tools calculate distance—ArcGIS Pro | Documentation

for example, the word "random" does appear

Multiple features may be equally closest to another feature. When this occurs, one of the equally closest features is randomly selected as the closest.

Consider the help topic contents in light of your findings


... sort of retired...
0 Kudos
SachinChand
Regular Contributor

Thanks Dan! I thought there might be more sophistication to the tool but it sounds like if a line just touches polygon A vs 99% of the line being enveloped by polygon B, the near analysis would choose a random polygon.

0 Kudos