I have a set of locations each representing a service capacity. I also have a polygonal layer with each polygon representing local demand for that service. For each location, I would like to define its service catchment by summing up the demand values from its nearest polygons until they meet the service capacity of the location. I thought it might be easier to rasterize the demand layer and then do some cost distance assessment but I can't figure out how to do this by summing the attribute value to meet the local service value.
Image 1 shows the data I have, The location example has a service capacity of 1100 and the polygons represent local demand. Image 2 shows how I have manually selected polygons summing to close the capacity, this would represent the service catchment.Image 3 shows a rasterized version of demand
Anyone have an idea how this could be achieved?