calculate median age within polygon.

2503
1
06-18-2012 09:16 AM
deleted-user-CusAFpM9s_tG
New Contributor
Can anyone help with this? I just need the script to calculate a new field that give the median age within a selected polygon.
0 Kudos
1 Reply
NobbirAhmed
Esri Regular Contributor
How is your population data (age data) stored? As points or polygons?

If points, you can use Spatial Join with the polygon as target and points as join features. In the field map, add a new field of type long - set the Merge rule to Median and input field to be the age field of point data.

The output of Spatial Join will have a new field with median age.
0 Kudos