<?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: When adding a shapefile as a layer its objects do not display properly on the basemap in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048886#M10011</link>
    <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Looking at the two layers as I try to display them I see the following WKTEXT for the map and for the layer I am about to add.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveStamm_0-1618862063146.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11276iFFC364546A469EA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveStamm_0-1618862063146.png" alt="SteveStamm_0-1618862063146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once I add the layer AllLayers looks like the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveStamm_1-1618863917760.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11280i5C02994B6D4DE021/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveStamm_1-1618863917760.png" alt="SteveStamm_1-1618863917760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does that look right?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 20:27:50 GMT</pubDate>
    <dc:creator>SteveStamm</dc:creator>
    <dc:date>2021-04-19T20:27:50Z</dc:date>
    <item>
      <title>When adding a shapefile as a layer its objects do not display properly on the basemap</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048148#M10005</link>
      <description>&lt;P&gt;Sorry about the images. I can't take code as text out of the development environment.&lt;/P&gt;&lt;P&gt;We are converting an old system based on version 10 to the latest 100 version. When using a shapefile as a layer using this code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 903px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11103i16ED28AA12DBB6D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We get this. But...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 527px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11104i09F772F75B41F91F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;using the same files but the older version of the API I get the following. It looks like the projection is okay but the extent is messed up. How do I match the extent of the shapefile with the base-map?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11105i6401A87469B0C48B/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for any help!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048148#M10005</guid>
      <dc:creator>SteveStamm</dc:creator>
      <dc:date>2021-04-16T15:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: When adding a shapefile as a layer its objects do not display properly on the basemap</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048189#M10006</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the 100.x generation Shapefiles are now supported directly by the ArcGIS Runtime API, without needing to go via the Local Server component. While it's not directly solving the question, I'd recommend trying this approach.&lt;/P&gt;&lt;P&gt;For&amp;nbsp; API ref and sample code see&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_Data_ShapefileFeatureTable.htm" target="_blank"&gt;https://developers.arcgis.com/net/wpf/api-reference/html/T_Esri_ArcGISRuntime_Data_ShapefileFeatureTable.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 16:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048189#M10006</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-04-16T16:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: When adding a shapefile as a layer its objects do not display properly on the basemap</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048246#M10007</link>
      <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Thanks for your speedy reply.&lt;/P&gt;&lt;P&gt;Looking at your reply and the code I sent leaves me a bit confused. I am not using LocalServer. In fact I got the code I am using from the page you recommended.&lt;/P&gt;&lt;P&gt;I assumed that the line:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-keyword"&gt;await&lt;/SPAN&gt; MyMapView.SetViewpointGeometryAsync(newFeatureLayer.FullExtent, &lt;SPAN class="highlight-number"&gt;50&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;Would set the width and height of the shape file or the basemap so that they match. I know that the API does not re-project the shapefile so you have to make sure that the projections are the same but that doesn't appear to be the issue here (They are both WKID:4269). There has to be a way somehow to make the two use the same starting dimensions.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 18:13:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048246#M10007</guid>
      <dc:creator>SteveStamm</dc:creator>
      <dc:date>2021-04-16T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: When adding a shapefile as a layer its objects do not display properly on the basemap</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048299#M10008</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;Sorry - I read the first part involving "_emptyMpkPath" and assumed you were using the Local Server.&lt;/P&gt;&lt;P&gt;You are of course correct: you are using the direct API when using ShapefileFeatureTable.&lt;/P&gt;&lt;P&gt;The API should re-project on-the-fly to match the spatial reference of the map.&lt;/P&gt;&lt;P&gt;Possibly you need the additional 'Project Engine' files? (this is a guess, but worth a try I think)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at this topic which explains the additional PE files:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/spatial-and-data-analysis/spatial-references/" target="_blank"&gt;https://developers.arcgis.com/net/spatial-and-data-analysis/spatial-references/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 19:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048299#M10008</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-04-16T19:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: When adding a shapefile as a layer its objects do not display properly on the basemap</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048348#M10009</link>
      <description>&lt;P&gt;Thanks Michael,&lt;/P&gt;&lt;P&gt;I will take a look on Monday. I appreciate your help.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 21:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048348#M10009</guid>
      <dc:creator>SteveStamm</dc:creator>
      <dc:date>2021-04-16T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: When adding a shapefile as a layer its objects do not display properly on the basemap</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048886#M10011</link>
      <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Looking at the two layers as I try to display them I see the following WKTEXT for the map and for the layer I am about to add.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveStamm_0-1618862063146.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11276iFFC364546A469EA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveStamm_0-1618862063146.png" alt="SteveStamm_0-1618862063146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once I add the layer AllLayers looks like the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveStamm_1-1618863917760.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11280i5C02994B6D4DE021/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveStamm_1-1618863917760.png" alt="SteveStamm_1-1618863917760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does that look right?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 20:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/when-adding-a-shapefile-as-a-layer-its-objects-do/m-p/1048886#M10011</guid>
      <dc:creator>SteveStamm</dc:creator>
      <dc:date>2021-04-19T20:27:50Z</dc:date>
    </item>
  </channel>
</rss>

