Cammarere0

Difficulty Reprojecting a Raster

Discussion created by Cammarere0 on Jul 2, 2010
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.

Attachments

Outcomes