Hi,
I am going to Extract an area of a TIFF Raster image, using an shapfile by ArcEngine9.3 and Visual Studio2008.
The following is the code:
geoprocessor gp = new geoprocessor();
gp.OverwriteOutput = true;
ExtractByMask cutTool = new ExtractByMask();
cutTool.inraster = @"D:\raster.tif";
cutTool.in_mask_data = @"D:\beijing.shp";
cutTool.outraster = @"D:\pd.tif";
IGeoProgressorResult result = (IGeoProgressorResult)gp.Execute(cutTool,null);
the "result" is null, "gp.GetMessage(2)" tells me "parameters are not valid".