Setting Extent for Geoprocessor not working

Discussion created by Masroor on Feb 24, 2012

I am using Geoprocessor in C# and was trying to set the extent so my process is constraint by this extent.
When I set the property 'gp.SetEnvironmentValue("extent", "-80.24 -78.43 43.05 44.51");' and ran the GP processor, the out put does not match the extent. It has restricted at the top left however the rest of the corners extend the full extent of the raster I am using.

I have tried it inside  ArcGIS 10 by setting the environment and it works. I am not sure why setting the extent in the code for Geoprocessor is not working.

Any Idea.

Many thanks

Masroor Hussain