O'Reilly logo

ArcGIS Blueprints by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the Aggregate Crimes tool

The Aggregate Crimes tool will aggregate the crimes to a polygon layer, such as census block groups or police precinct boundaries. This tool will use the existing SpatialJoin tool found in the Analysis Tools toolbox to summarize the total number of crimes in each polygon. Two polygon feature classes have been provided for you: Seattle_BG and Seattle_Merge_Precincts. The former contains census block groups for Seattle, while the later contains police precincts for Seattle. Both datasets are in the C:\ArcGIS_Blueprint_Python\data\crime folder. The Aggregate Crimes tool will prompt the user to select a polygon layer, crime dataset, and output feature class; it will then perform a spatial join:

  1. Open C:\ArcGIS_Blueprint_Python\ch4\SeattleCrimes.mxd ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required