<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use CIMWFSServiceConnection in ArcGIS Pro in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-cimwfsserviceconnection-in-arcgis-pro/m-p/1050594#M6491</link>
    <description>&lt;P&gt;Assuming you have a Map instance named "map", try this code snippet:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;CIMStandardDataConnection cimStandardDataConnection = new CIMStandardDataConnection
{
  DatasetType = esriDatasetType.esriDTFeatureClass,
  WorkspaceConnectionString = @"SWAPXY=TRUE;SWAPXYFILTER=FALSE;VERSION=2.0.0;URL=https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WFSServer",
  WorkspaceFactory = WorkspaceFactory.WFS,
  Dataset = "Cities"
};

var wfsLayer = LayerFactory.Instance.CreateLayer(cimStandardDataConnection, map);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 12:15:24 GMT</pubDate>
    <dc:creator>SrinivasVinnakota</dc:creator>
    <dc:date>2021-04-23T12:15:24Z</dc:date>
    <item>
      <title>How to use CIMWFSServiceConnection in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-cimwfsserviceconnection-in-arcgis-pro/m-p/1046766#M6439</link>
      <description>&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;Does anyone know how to add a WFS service to a map using the CIMWFSServiceConnection class?&lt;/P&gt;&lt;P&gt;The WMS and WMTS equivalents work perfect, but when using CIMWFSServiceConnection, the layer that's added to the map has a red exclamation mark in front of it, and the &lt;EM&gt;Source&lt;/EM&gt; entry on the layer's properties dialog shows &lt;EM&gt;Data source information not available&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is the code I used for adding a WMS service, the only differences are the URL, and the class used in line 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var serverConnection = new CIMInternetServerConnection { URL = "https://example.com/wms?service=WMS" };
connection = new CIMWMSServiceConnection { ServerConnection = serverConnection };
LayerFactory.Instance.CreateLayer(connection, MapView.Active.Map);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding a WFS through the user interface (i.e. Favorites &amp;gt; Add Item &amp;gt; New WFS Server) also works without problems.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-cimwfsserviceconnection-in-arcgis-pro/m-p/1046766#M6439</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2021-04-14T07:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CIMWFSServiceConnection in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-cimwfsserviceconnection-in-arcgis-pro/m-p/1050594#M6491</link>
      <description>&lt;P&gt;Assuming you have a Map instance named "map", try this code snippet:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;CIMStandardDataConnection cimStandardDataConnection = new CIMStandardDataConnection
{
  DatasetType = esriDatasetType.esriDTFeatureClass,
  WorkspaceConnectionString = @"SWAPXY=TRUE;SWAPXYFILTER=FALSE;VERSION=2.0.0;URL=https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WFSServer",
  WorkspaceFactory = WorkspaceFactory.WFS,
  Dataset = "Cities"
};

var wfsLayer = LayerFactory.Instance.CreateLayer(cimStandardDataConnection, map);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 12:15:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-cimwfsserviceconnection-in-arcgis-pro/m-p/1050594#M6491</guid>
      <dc:creator>SrinivasVinnakota</dc:creator>
      <dc:date>2021-04-23T12:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CIMWFSServiceConnection in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-cimwfsserviceconnection-in-arcgis-pro/m-p/1050597#M6492</link>
      <description>&lt;P&gt;I see you found the same snippet too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring#add-a-wfs-service" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring#add-a-wfs-service&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 12:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-cimwfsserviceconnection-in-arcgis-pro/m-p/1050597#M6492</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2021-04-23T12:26:11Z</dc:date>
    </item>
  </channel>
</rss>

