Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

Cheers.

share|improve this question
    
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
add comment

1 Answer

up vote 2 down vote accepted

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);
    rasterGP.Register(raster);
}
share|improve this answer
    
As simple as that ;) Everything works fine now, thanks for your help. –  jan_b Jan 11 '13 at 8:08
    
you are welcome :) –  Emi Jan 11 '13 at 14:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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