Difficulty Reprojecting a Raster

437
0
07-02-2010 10:54 AM
MarkCammarere
New Contributor III
Hi! I've got an elevation raster (in geo-coordinates) that I'm trying to generate a slope raster from. In order to get the X, Y, and Z-coordinates in the same units, I first project the elevation raster to UTM coordinates (before using the ISurfaceOp.Slope method) using the ITransformationOp.ProjectFast method. The resulting slopes look reasonable. However, when I try to reproject back to geo-coordinates (again, using the ITransformationOp.ProjectFast method), I get an error when recasting the resulting IGeoDataset to an IRaster. The relevant C# code is provided in the attachment. Any help and/or insights would be greatly appreciated. Thanks!

Mark C.
0 Kudos
0 Replies