Export Interopability extension layer in Arc 10.0 to shape/FileGDB or PGDB

399
0
02-27-2014 06:51 AM
Ravichandran_M_Kaushika
Occasional Contributor
Dear Readers,

thanks a lot for taking the time to read this post.

Using ArcObjects with C# in VS 2010, I was able to create a .FDL (interop extn black box file) mimicking the clicks of a 'Add Interopability Layer' and dropping the same in c:\users\...\AppData\Roaming\SAFE Software\Interoperability folder.

Users are able drag and drop the Interop Layer if a .lyr file does not exist in the same folder - if a .lyr file exists with the same name as the MyWFSLayerFromServer.fdl - then MyWFSLayerFromServer is added to TOC.


IGxLayer gxlGXLayerCls = new ESRI.ArcGIS.Catalog.GxLayer();
IGxFile gxFile = (ESRI.ArcGIS.Catalog.IGxFile)gxlGXLayerCls; //Explicit Cast.
gxFile.Path = strLYRFile2BLoadedAsFeatLayerInParam;
_pMxDoc.AddLayer(gxlGXLayerCls.Layer);



Now, how to export this newly added gxlGXLayerCls layer to a PGDB or FGDB or even a shapefile for starters.

I looked at IFeatureDataConverter class and that .ConvertFeatureClass wants an inputFeatClassName and that is driving me crazy.

regards
ravi.
0 Kudos
0 Replies