Count Overlapping Polygons

Titleā€ƒ Count Overlapping Polygons

Summary

Given a polygon feature class or layer containing overlapping polygons, creates a new feature class with the overlaps removed and the number of overlapping polygons.


Usage

  • Input Features is a polygon feature class or layer containing overlapping polygons.

  • If you have individual feature classes that you want to count overlaps for, use the Merge tool to merge the individual feature classes into one feature class.

  • Note: This tool will output the warning message 000117 "Warning empty output generated". You can ignore this warning.

Methodology:

  1. Feature to Polygon converts the overlapping polygons to non-overlapping polygon. All polygon intersections become the polygons in the output. An empty label features is used to limit the attrbritutes in the output feature class.

  2. Feature to Point gets the centroids from the non-overlapping polygons. These centroids are used in Spatial Join because spatial join is much faster with points.

  3. Spatial Join counts how many of the original polygons overlap the centroids.

  4. Join Field is used to join the count attribute to the non-overlapping polygons.

  5. All features with count = 0 are selected and deleted. These are the gaps between polygons.


Syntax

Parameter Explanation
Input_Features

Input polygon feature class with overlapping polygons.

Output_Feature_Class

Output polygon feature with the count of overlapping polygons. The feature class has one attribute, Join_Count, containing the number of overlapping polygons.

Code Samples

Tags

Count overlapping polygons, overlap, overlay

Credits

Use limitations