AnsweredAssumed Answered

[C#] get IRasterWorkspaceEx from IWorkspaceFactory

Question asked by oyleiste on Mar 25, 2013
Latest reply on Mar 26, 2013 by oyleiste
Hello

I need to create IRasterWorkspaceEx to use it for creating IMADtedLayer. This is how:
IWorkspaceFactory wsf = new RasterWorkspaceFactoryClass(); IRasterWorkspaceEx rasterwsEx = (IRasterWorkspaceEx)wsf.OpenFromFile(foldername, 0); //then create IRasterCatalog and etc.


Every time I get error on casting IWorkspace (output of OpenFromFile) to IRasterWorkspaceEx.
Is there anyone to answer this question? :(

Thank you

Outcomes