{
var prj = SpatialReferenceHelper.ReadSR(prjPath);//prjPath即妳要轉換成的坐標系的prj文件;inputRasterPath:需要轉換的文件路徑;outRasterPath轉換完成後的文件路徑
Geoprocessor gp = new Geoprocessor();
ProjectRaster projectRaster = new ProjectRaster();
projectRaster.in_raster = inputRasterPath;
projectRaster.out_raster = outRasterPath;
projectRaster.cell_size = "10000";
projectRaster.out_coor_system = prj;
IGeoProcessorResult tGPResult = (IGeoProcessorResult)gp.Execute(projectRaster, null);
if (tGPResult.Status == ESRI.ArcGIS.esriSystem.esriJobStatus.esriJobSucceeded)
{
return true;
}
return false;
}