How to add a WFS to ArcMap programmatically

427
2
08-02-2011 05:29 AM
bastianellmenreich
New Contributor
Hello,
i'am searching for a way to add a wfs to ArcMap by ArcObjects. Unfortunately theres no example or help. I found out that in 9.3 exist a class FMEWorkspaceFactoryClass using the Interoperability Exentension but in 10 it doesnt exist anymore.

In 9.3:
IWorkspaceFactory factory = (IWorkspaceFactory)new FMEWorkspaceFactoryClass();
IFeatureWorkspace workspace = (IFeatureWorkspace)factory.OpenFromFile("d:\test", 0);
IFeatureDataset fds = workspace.OpenFeatureDataset("name.fdl"); 

In 10 maybe i can use the Data Interoperability toolbox, but this only export the data but wfs is a dynamic datasource like wms. Are there any other way's or  would esri plans an own (not fme) plugin with a api.

thanks
0 Kudos
2 Replies
DubravkoAntonic
New Contributor III
wfs?
wfs is maybe FMEWorkspaceFactoryClass -> wfc


http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Connecting_to_a_geodata...
About workspaces
[INDENT]Methods for connecting to a workspace[/INDENT]

there is IWorkspaceFactory.OpenFromFile and some code for Connecting to file geodatabases.

Hope this was helpful.

Regards Dubravko Antoni�?
0 Kudos
TomSchuller
Occasional Contributor III
0 Kudos