Using ArcGIS 10.5, I have a cluster of polygons that represent districts (together this cluster of polygons creates a nation). I also have thousands of points that represent offices.
I would like to calculate the distance from the edge of each polygon (market) to the nearest point (office) outside of that polygon (market).
My goal is to calculate the distance of the nearest point (office) from each polygon (district) - such that a value is recorded next to each polygon (office) FID. I used the Near tool in toolkit, but it calculates a distance of 0 if there are points (offices) within the polygons (districts). I only want to calculate the distance from the nearest point (office) OUTSIDE of the district (polygon), but not INSIDE of it.
Could you help me with this?
To clarify, every polygon needs a value that is larger than zero. That value should represent the distance from the edge of that polygon to the nearest point OUTSIDE (and never inside) of that polygon.