I'm following the "How to create a raster dataset" tutorial: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000464000000

The questions are:

1) How can I create the raster in a file geodatabase? (The example given is incomplete.)

2) How can I rotate the newly created raster? (Standalone TIFF or a geodatabase raster.)

I know there is IRasterGeometryProc3, but I can't make it work. Any samples / help would be appreciated.


  • I couldn't find in which point you think the example is incomplete. Can you make it more clear? May be then I can help you – Emi Jan 10 '13 at 3:38
  • You're right, the example is sufficient, already gone through this. I don't remember exactly what I was missing, despite some tips on how to rotate the raster. Thanks – jan_b Jan 10 '13 at 7:34
  • I have updated my answer. It may help you – Emi Jan 10 '13 at 8:35

In this example, it creates a raster in a raster workspace. If you need a file geodatabase, you need to create/open a file geodatabase and then assign it to a raster workspace and all others are same procedure then.

ADDITION: You can go through IRasterGeometryProc.Rotate Method

I found following code snippet in a esri document. Though this document for arcgis version 9.2, it may help you.

void Rotate(IRaster raster)
    IRasterGeometryProc rasterGP = new RasterGeometryProcClass();
    rasterGP.Rotate(null, 45, raster);
  • As simple as that ;) Everything works fine now, thanks for your help. – jan_b Jan 11 '13 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.