English

FAQ: Why does a raster with rotation lose its rotation after being loaded into a geodatabase?

Question

Why does a raster with rotation lose its rotation after being loaded into a geodatabase?

Answer

If an image raster has rotation specified in its world file, it displays rotated. If the image raster is loaded into a geodatabase, the rotation is not maintained. This is because only raw pixel data will be read and loaded into a geodatabase. The rotation component of the transformation is not applied.

To work around this, you can write a customized application that uses the Raster::SaveAs method to save the raster to another dataset. This method will resample the original pixel data and apply the rotation to it. When the resulting dataset is loaded into the geodatabase, the rotation specified in the original world file will be retained.