I am using C# to perform some analysis steps. My Buffer step fails due to output geometry domain. I have replicated the failure manually and have found that if I have an output coordinate system assigned, then the buffer processes correctly. So, I want to get the coordinate system from one of the input layers to assign to the buffer execution. Does anybody know how to get the coordinate system from a polygon layer or a raster layer?