<?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: Create Featues From Shapefile Offline in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387398#M1924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; The sample&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;illustrates how to use the ArcGISWebClient class to post multi-part content (e.g. file) to a service\operation&lt;/SPAN&gt; as mentioned in its description.&amp;nbsp; &lt;BR /&gt;If you want just to load local shapefile to your map at runtime you can check "Add Shapefiles and Raster" sample as It will load your content as ArcGISLocalDynamicMapServiceLayer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for responding! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the "Add Shapefiles and Raster" sample in the WPF SDK Samples but the live sample throws a Nullpointer Exception after adding my local shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a new WPF project from scratch with the code from the live sample to check the exception. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcGisLocalDynamicMapServiceLayer.GetDetails(dynamicLayerInfo.ID, (featureLayerInfo, exception) =&amp;gt;
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;featureLayerInfo&lt;/SPAN&gt;.GeometryType) &amp;lt;-- &lt;SPAN style="color: &amp;quot;#FF0000&amp;quot;; font-style: italic;"&gt;featureLayerInfo is null&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set renderer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [...]
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the code and set the renderer with a SimpleFillSymbol manually but I can't see my shapefile on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also checked the sample/code from: &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample is missing the switch-statement and it's running without problems/exceptions but I can't see my shapefile on the map too &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Hi,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;What's the timescale for your project?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Cheers&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The project will only start in a few weeks. But I have just two days left vor evaluating the WPF SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:47:42 GMT</pubDate>
    <dc:creator>DannyNieruch</dc:creator>
    <dc:date>2021-12-11T17:47:42Z</dc:date>
    <item>
      <title>Create Featues From Shapefile Offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387395#M1921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to evaluate the ArcGIS Runtime WPF SDK for a new project. Therefore this topic is really new to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is required that the WPF Application will run in an offline environment. I have to load a local .tpk File and draw lines and polygons from two shapefiles. I came accross the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"Create Features From Shapefile"&lt;/SPAN&gt;&lt;SPAN&gt; example in the runtime samples. The sample project worked for me with a local shapefile and seems exactly what I need but it uses the ArcGIS Portal REST API (&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/sharing/rest/content/features/generate"&gt;http://www.arcgis.com/sharing/rest/content/features/generate&lt;/A&gt;&lt;SPAN&gt;) for generating the features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to do this in an offline scenario without the REST API? I discovered the LocalFeatureService. Can I use them to generate the features from the shapefiles?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387395#M1921</guid>
      <dc:creator>DannyNieruch</dc:creator>
      <dc:date>2014-03-07T13:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create Featues From Shapefile Offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387396#M1922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the timescale for your project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2014 14:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387396#M1922</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2014-03-08T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create Featues From Shapefile Offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387397#M1923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have to evaluate the ArcGIS Runtime WPF SDK for a new project. Therefore this topic is really new to me.&lt;BR /&gt;It is required that the WPF Application will run in an offline environment. I have to load a local .tpk File and draw lines and polygons from two shapefiles. I came accross the &lt;SPAN style="font-style:italic;"&gt;"Create Features From Shapefile"&lt;/SPAN&gt; example in the runtime samples. The sample project worked for me with a local shapefile and seems exactly what I need but it uses the ArcGIS Portal REST API (&lt;A href="http://www.arcgis.com/sharing/rest/content/features/generate"&gt;http://www.arcgis.com/sharing/rest/content/features/generate&lt;/A&gt;) for generating the features.&lt;BR /&gt;Is there a way to do this in an offline scenario without the REST API? I discovered the LocalFeatureService. Can I use them to generate the features from the shapefiles?&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;illustrates how to use the ArcGISWebClient class to post multi-part content (e.g. file) to a service\operation&lt;/SPAN&gt;&lt;SPAN&gt; as mentioned in its description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want just to load local shapefile to your map at runtime you can check "Add Shapefiles and Raster" sample as It will load your content as ArcGISLocalDynamicMapServiceLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2014 04:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387397#M1923</guid>
      <dc:creator>AhmedEl-Sisi</dc:creator>
      <dc:date>2014-03-09T04:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Featues From Shapefile Offline</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387398#M1924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; The sample&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;illustrates how to use the ArcGISWebClient class to post multi-part content (e.g. file) to a service\operation&lt;/SPAN&gt; as mentioned in its description.&amp;nbsp; &lt;BR /&gt;If you want just to load local shapefile to your map at runtime you can check "Add Shapefiles and Raster" sample as It will load your content as ArcGISLocalDynamicMapServiceLayer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for responding! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the "Add Shapefiles and Raster" sample in the WPF SDK Samples but the live sample throws a Nullpointer Exception after adding my local shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a new WPF project from scratch with the code from the live sample to check the exception. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
arcGisLocalDynamicMapServiceLayer.GetDetails(dynamicLayerInfo.ID, (featureLayerInfo, exception) =&amp;gt;
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;featureLayerInfo&lt;/SPAN&gt;.GeometryType) &amp;lt;-- &lt;SPAN style="color: &amp;quot;#FF0000&amp;quot;; font-style: italic;"&gt;featureLayerInfo is null&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set renderer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [...]
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the code and set the renderer with a SimpleFillSymbol manually but I can't see my shapefile on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also checked the sample/code from: &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample is missing the switch-statement and it's running without problems/exceptions but I can't see my shapefile on the map too &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Hi,&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;What's the timescale for your project?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Cheers&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The project will only start in a few weeks. But I have just two days left vor evaluating the WPF SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/create-featues-from-shapefile-offline/m-p/387398#M1924</guid>
      <dc:creator>DannyNieruch</dc:creator>
      <dc:date>2021-12-11T17:47:42Z</dc:date>
    </item>
  </channel>
</rss>

