<?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 adding layers from spatial databases in vb.net in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adding-layers-from-spatial-databases-in-vb-net/m-p/798245#M1885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon everyone, I was wondering if anyone has any vb.net examples of adding layers to a ArcGIS Pro Map that they could share. I need to add layers, but its not just as simple as adding from a file. However if anyone has any examples of the following for Pro I would be really grateful as it will help me debug. I haven't programmed using Async before so if anyone could share:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adding a layer from a flat file&lt;/P&gt;&lt;P&gt;adding a layer from a spatial SQL database&lt;/P&gt;&lt;P&gt;adding a layer when the name changes dynamically based on a user selection in a UI that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting a method wrong and I am trying to work out which one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;S*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2017 16:09:35 GMT</pubDate>
    <dc:creator>SamanthaHughes1</dc:creator>
    <dc:date>2017-07-11T16:09:35Z</dc:date>
    <item>
      <title>adding layers from spatial databases in vb.net</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adding-layers-from-spatial-databases-in-vb-net/m-p/798245#M1885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon everyone, I was wondering if anyone has any vb.net examples of adding layers to a ArcGIS Pro Map that they could share. I need to add layers, but its not just as simple as adding from a file. However if anyone has any examples of the following for Pro I would be really grateful as it will help me debug. I haven't programmed using Async before so if anyone could share:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adding a layer from a flat file&lt;/P&gt;&lt;P&gt;adding a layer from a spatial SQL database&lt;/P&gt;&lt;P&gt;adding a layer when the name changes dynamically based on a user selection in a UI that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting a method wrong and I am trying to work out which one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;S*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:09:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/adding-layers-from-spatial-databases-in-vb-net/m-p/798245#M1885</guid>
      <dc:creator>SamanthaHughes1</dc:creator>
      <dc:date>2017-07-11T16:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: adding layers from spatial databases in vb.net</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/adding-layers-from-spatial-databases-in-vb-net/m-p/798246#M1886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it. it was all about the QueuedTask.Run and when to use it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim map As Map = MapView.Active.Map&lt;BR /&gt;QueuedTask.Run(&lt;BR /&gt;Sub()&lt;BR /&gt;&lt;SPAN&gt;Dim shelterslyr As Layer = LayerFactory.Instance.CreateLayer(New Uri("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FNapervilleShelters%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/NapervilleShelters/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"), map)&lt;/SPAN&gt;&lt;BR /&gt;End Sub)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A working vb example for a change &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/adding-layers-from-spatial-databases-in-vb-net/m-p/798246#M1886</guid>
      <dc:creator>SamanthaHughes1</dc:creator>
      <dc:date>2017-07-12T15:16:09Z</dc:date>
    </item>
  </channel>
</rss>

