I am trying to find the correct approach or interfaces to adding a WFS services ie one created using the interoperability extension.I need to add this via code.Does anyone have any ideas. There appeared to be an FMEWorkspace interface back in 9.Thanks for any help.
IApplication m_application = Hook as IApplication; IMxDocument pMxDoc = m_application.Document as IMxDocument; //Create a GxLayer. IGxLayer gxLayerCls = new GxLayer(); IGxFile gxFile = (IGxFile)gxLayerCls; //Explicit Cast. //Set the path where the layer file is located on disk. gxFile.Path = layerFilePathString; //Test if you have a valid layer and add it to the map. if (!(gxLayerCls.Layer == null)) { IMap map = pMxDoc.FocusMap; map.AddLayer(gxLayerCls.Layer); }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.