<?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: New FeatureLayer does not render existing data in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817681#M2681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I use this functionality often and never have seen an issue, so I assume this issue is specific to your layer definition and/or data.&amp;nbsp; In the attribute table you can select a feature and then use the 'zoom to' function to see where that takes you on the map, maybe there's a projection problem.&amp;nbsp; If you add the layer through the UI in Pro it works fine? Is it&amp;nbsp;failing only when you add it through the SDK?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2020 13:38:15 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2020-09-15T13:38:15Z</dc:date>
    <item>
      <title>New FeatureLayer does not render existing data</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817678#M2678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;LayerFactory.Instance.CreateFeatureLayer(...) t&lt;/SPAN&gt;o create new Layers based on .lyrx files.&lt;/P&gt;&lt;P&gt;The Layer's "dataset" references an existing feature-table in the geo-database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;What I expect:&lt;/SPAN&gt; ArcGIS Pro creates the new layer and renders the existing geo-objects from the feature-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;What happens: &lt;/SPAN&gt;&lt;/SPAN&gt;ArcGIS Pro creates the new layer, but does not render any objects. The layer is empty. However, when I open the Layer's "attribute table", using the context menu, I can see the data!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, I'm missing something. Is there a way to enforce the rendering of existing data programmatically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 08:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817678#M2678</guid>
      <dc:creator>GernotNeppert</dc:creator>
      <dc:date>2020-08-19T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: New FeatureLayer does not render existing data</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817679#M2679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;4 weeks have passed since I posted this question.&lt;/P&gt;&lt;P&gt;In the meantime, we've tried every conceivable way to get this to work, but to no avail...&lt;/P&gt;&lt;P&gt;Seems we have a profound misunderstanding of how layers relate to their database tables.&lt;/P&gt;&lt;P&gt;Some more background:&lt;/P&gt;&lt;P&gt;We have an ArcGIS Pro Addin with a remote interface to a client application. When the addin initializes, it creates the database with the appropriate tables. Afterwards, the client application may start sending "draw requests" to the Addin.&lt;/P&gt;&lt;P&gt;Once the user opens a map view, the Addin reacts by adding the expected feature Layers. However, even though there's already data in the dataset, nothing appears on the Map &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 07:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817679#M2679</guid>
      <dc:creator>GernotNeppert</dc:creator>
      <dc:date>2020-09-15T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: New FeatureLayer does not render existing data</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817680#M2680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just a guess, but I'm pretty sure when you bring in a .lyrx file it also brings in any scale references, etc. that were set at the time you created the .lyrx.&amp;nbsp; Do you have anything like that set that would&amp;nbsp;prevent the data from&amp;nbsp;displaying properly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817680#M2680</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2020-09-15T12:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: New FeatureLayer does not render existing data</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817681#M2681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I use this functionality often and never have seen an issue, so I assume this issue is specific to your layer definition and/or data.&amp;nbsp; In the attribute table you can select a feature and then use the 'zoom to' function to see where that takes you on the map, maybe there's a projection problem.&amp;nbsp; If you add the layer through the UI in Pro it works fine? Is it&amp;nbsp;failing only when you add it through the SDK?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 13:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817681#M2681</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2020-09-15T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: New FeatureLayer does not render existing data</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817682#M2682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your replies!&lt;/P&gt;&lt;P&gt;We've investigated the problem further and found out something interesting:&lt;/P&gt;&lt;P&gt;Our geo-data will be displayed if we do the following two things after creating the FeatureLayer:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Invoke &lt;A href="https://pro.arcgis.com/en%20%20%20%20/pro-app/sdk/api-reference/topic9204.html"&gt;SaveEditsAsync()&lt;/A&gt; on the current Project.&lt;/LI&gt;&lt;LI&gt;Invoke &lt;A href="https://pro.arcgis.com/en%20%20%20%20/pro-app/sdk/api-reference/topic20822.html"&gt;Redraw()&lt;/A&gt; on the active MapView.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Neither operation is sufficient on on its own, you need to do both of them!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, unsatisfiying as it may be, we'll use this workaround until someon comes up with a better solution...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 13:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/new-featurelayer-does-not-render-existing-data/m-p/817682#M2682</guid>
      <dc:creator>GernotNeppert</dc:creator>
      <dc:date>2020-09-16T13:45:07Z</dc:date>
    </item>
  </channel>
</rss>

