Select to view content in your preferred language

Calculate distance between two polygon shapefiles using ArcGIS 10.4

4665
6
Jump to solution
10-31-2018 01:18 PM
SlobodanKomatina2
Emerging Contributor

I have a two polygon shapefiles, one shapefile is a zoning and the second one is a census tract. Now I want to calculate distance from boundary of tract to closest boundary of each zone type (R, C, etc). Because of that I have dissolved all zones according to zone type and now I want to have in each census tract information about nearest distance to the all zone types (distance to C, distance to R, etc...).

Also I want to have a zero distance value if each tract contain the zone.

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

from the help topic for near tool

closest
(Optional)

Specifies whether to return only the closest features or multiple features.

  • CLOSESTOnly the closest near feature will be written to the output table. This is the default.
  • ALLMultiple near features will be written to the output table (a limit can be specified in the closest_count parameter).

So you want ALL as a start to see if it does what you want.

I would do a sample first!

View solution in original post

6 Replies
DanPatterson_Retired
MVP Emeritus

Near—Help | ArcGIS Desktop 

Generate Near Table—Help | ArcGIS Desktop 

For ArcMap and ArcGIS Pro is you have the appropriate license

0 Kudos
SlobodanKomatina2
Emerging Contributor

Thank you Dan, but this is not completely what I need. On this way I have just one distance to the nearest zone, no matter which one, but I need a new distance field for all zone types for each census tract. For example CENSUSTRACT1 have a information in distance fields "A" (which mean distance to the nearest zone A), "C" (which mean distamce to the nearest zone C), etc...

0 Kudos
DanPatterson_Retired
MVP Emeritus

So you actually want a distance from one place to all other places?

a  -> b   10

   ->  c   15

   ->  d   20

 etc.

Near Table comes the closest without separate coding

0 Kudos
SlobodanKomatina2
Emerging Contributor

Exactly. From each census tract to all zoning types... How I can do that using Near Table tool in ArcGIS 10.4? When I run it I always get the same results, just the one nearest zone...

0 Kudos
DanPatterson_Retired
MVP Emeritus

from the help topic for near tool

closest
(Optional)

Specifies whether to return only the closest features or multiple features.

  • CLOSESTOnly the closest near feature will be written to the output table. This is the default.
  • ALLMultiple near features will be written to the output table (a limit can be specified in the closest_count parameter).

So you want ALL as a start to see if it does what you want.

I would do a sample first!

SlobodanKomatina2
Emerging Contributor

Great. With excel pivot table that is it. I have used minimum value...

0 Kudos