Is there a way to create a temporary FeatureClass?

Discussion created by dagrizz on Nov 22, 2010
I currently have a REST SOE that provides an export map image. I'd like to build something similar however I want to aggregate features before I display them. For example I'd like to take a published MXD and join the polygons with similar values. This would produce a set of new set of polygons from which I could then export a map image.

The new feature set does not need to be saved in any form. I simply need it for the image export. I'm wondering if there is a way to do this without publishing the layers through SDE? Ideally I'd like to be able to use this with MXDs published as simple map services. Any ideas?