LarsGertsen

Calling RasterToDTED from ArcGIS Engine 10

Discussion created by LarsGertsen on Jun 30, 2011
Latest reply on Jul 1, 2011 by LarsGertsen
Hi,

Anybody got an example how to call this geoProcessor tool? My gp throw an ComException with E_FAIL every time.
This is how I do it:
Geoprocessor gp = new Geoprocessor();
RasterToDTED rasterToDted = new RasterToDTED();

rasterToDted.dted_level = "0";
rasterToDted.in_raster =axMapControl1.ActiveView.FocusMap.Layer[1];//this layer works in ArcMap
rasterToDted.out_folder = Application.StartupPath;
rasterToDted.resampling_type = "BILINEAR";
gp.Execute(rasterToDted, null);

I have also triet to set the path to the in_raster but same result.

Regards
Lars Gertsen - Denmark

Outcomes