<?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: Why are dynamic workspace shapefile subdivisions gray? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231268#M2757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is from the sample, unaltered.&amp;nbsp; I was hoping the sample shows that there's a default renderer being applied behind the scenes (like the way arcobjects does it), and that providing an inappropriate renderer (like a simplerenderer with a linesymbol for a polygon layer) would cause it to revert to the default renderer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I comment out the line where the _shapefileSublayer.Renderer is being set, nothing in the layer gets displayed. So I guess there's no default, so we're required to set an appropriate renderer, even though this example shows an inappropriate one might still draw something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is there a general way (for both shapefiles and enterprise featureclasses) to determine the geometrytype of&amp;nbsp; a TableSublayerSource so that I can create an appropriate renderer?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2019 21:25:54 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-05-20T21:25:54Z</dc:date>
    <item>
      <title>Why are dynamic workspace shapefile subdivisions gray?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231266#M2755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused by the&lt;A href="https://developers.arcgis.com/net/latest/wpf/sample-code/dynamicworkspaceshapefile.htm"&gt; Dynamic Workspace Shapefile sample&lt;/A&gt; with 100.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I pick the subdivisions.shp, the code assigns a simplerenderer based on a red simplelinesymbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I see gray filled polygons.&amp;nbsp; Is this a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/447986_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/447987_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks, Kirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 15:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231266#M2755</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-20T15:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dynamic workspace shapefile subdivisions gray?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231267#M2756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the shapefile you're using is a &lt;SPAN style="text-decoration: underline;"&gt;Polygon&lt;/SPAN&gt; shapefile, but you're providing a &lt;SPAN style="text-decoration: underline;"&gt;Line&lt;/SPAN&gt; symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try setting a &lt;STRONG&gt;SimpleFilleSymbol&lt;/STRONG&gt; instead. If you just want an outline, use a &lt;STRONG&gt;SimpleFillSymbol&lt;/STRONG&gt; and set its &lt;STRONG&gt;Outline&lt;/STRONG&gt;&amp;nbsp;to that &lt;STRONG&gt;SimpleLineSymbol&lt;/STRONG&gt; you've got, then set the SimpleFillSymbol style to &lt;STRONG&gt;.Null&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 18:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231267#M2756</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-05-20T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dynamic workspace shapefile subdivisions gray?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231268#M2757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is from the sample, unaltered.&amp;nbsp; I was hoping the sample shows that there's a default renderer being applied behind the scenes (like the way arcobjects does it), and that providing an inappropriate renderer (like a simplerenderer with a linesymbol for a polygon layer) would cause it to revert to the default renderer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I comment out the line where the _shapefileSublayer.Renderer is being set, nothing in the layer gets displayed. So I guess there's no default, so we're required to set an appropriate renderer, even though this example shows an inappropriate one might still draw something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is there a general way (for both shapefiles and enterprise featureclasses) to determine the geometrytype of&amp;nbsp; a TableSublayerSource so that I can create an appropriate renderer?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 21:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231268#M2757</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-20T21:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dynamic workspace shapefile subdivisions gray?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231269#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kirk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Granted I'm not familiar with the Local Server samples (I'm an iOS Runtime kind of guy and we don't have Local Server) so I could be mistaken, but it looks like a bug in the sample, tbh. I imagine the sample is&amp;nbsp;opening a shapefile, and you picked one with polygons in it. If you try to render a polygon class with a line symbol, you'll likely not see&amp;nbsp;what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/a3aad07afa1a29fece692648e2337ed1c0de7118/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Data/SymbolizeShapefile/SymbolizeShapefile.xaml.cs"&gt;this sample&lt;/A&gt; which is rendering the same Subdivisions shapefile, albeit without Local Server in the mix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again, I could be wrong. Do try setting up the _shapefileSublayer.Renderer with a polygon symbol as per the other sample and see if that works.&amp;nbsp;But it looks like either the sample or the SDK is broken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 21:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231269#M2758</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-05-20T21:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dynamic workspace shapefile subdivisions gray?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231270#M2759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample assumes you're using the sample data that's associated with that sample - it's just showing a discreet workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the workflow more generic, you could take a look at the `ArcGISSublayer.MapServiceSublayerInfo` Property and create some conditional logic&amp;nbsp;based on the `ArcGISMapServiceSublayerInfo.GeometryType`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will also say the recommended option for accessing Shapefiles is to use ArcGIS Runtime directly rather than go via the Local Server component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 22:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231270#M2759</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2019-05-20T22:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dynamic workspace shapefile subdivisions gray?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231271#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael -&lt;/P&gt;&lt;P&gt;After I get this working, I intend to generalize it to work with EnterpriseWorkspace too.&amp;nbsp; I'm trying to make a workaround for &lt;A _jive_internal="true" href="https://community.esri.com/thread/228673-map-packagempkx-with-referenced-data-not-loading-in-runtime-sdk#comment"&gt;BUG-000120203&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to get the geometrytype, it looks like I need to call LoadAsync on the sublayer first.&lt;/P&gt;&lt;P&gt;So I changed this code in the sample:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="448041" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/448041_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="448040" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/448040_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;... and get the Illegal state error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming it would get the same error with an SDE workspace too, but will try to confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I just make a single change to the sample (without changing anything else) I see that LoadStatusChanged never fires.&amp;nbsp; Shouldn't we expect this to fire?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/448065_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks, Kirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 03:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/why-are-dynamic-workspace-shapefile-subdivisions/m-p/231271#M2760</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-21T03:09:50Z</dc:date>
    </item>
  </channel>
</rss>

