I'm currently building an add-in for ArcMap – ArcView using the .Net framework.
The user of ArcMap and the Add-in should access data published from WFS services.
I am aware that it is possible to manually add WFS services via the Interoperability Connections interface.
But, is it possible to add these WFS services programatically? (chances are – my users will find it difficult to add these manually)
And if it is, how could it be done?
I can't seem to find any info on this subject.
Best Answer
Unfortunately there is no way to dynamically make requests by a class. You have to program it via the fdl-file. To add a service (like WFS) you could use the code below.
Cheers!
PS: Did you try using the IWFSServer interface? I used DI functionality in one of my previous projects to export data to GML format using QuickExport. You can try using the QuickImport and selecting WFS as the source. I am atatching the QuickExport code for your reference...