I am trying to figure out how to generate a boundary around features in a polygon feature class that is based on a count of a field in a point feature class tracking estimated population. The point feature class has a field for estimated population. I would like the tool (or model/script if I need to write one) to find the nearest x features from the point feature class to the polygon feature class that equal a set value based on the estimated population field in the point feature class. So if I input 200 it would iterate through the nearest point features until it reaches 200 for the attribute I have selected, then generate a minimum bounding geometry around those points. I am trying to create a service area of sorts, based on a needs assessment that is population based.
Any idea if something like this already exists? If not, ideas on the tools to string together to do it?