<?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: Scale of shapefile layers in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360104#M4254</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;Thanks for your answer.&lt;/P&gt;&lt;P&gt;In my test, I'm using one of the files included in the sample-data folder : world-cities.shp.&lt;/P&gt;&lt;P&gt;The .prj associated seems to be OK (GCS_WGS_1984) and is the same as the MapView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jérome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 09:24:33 GMT</pubDate>
    <dc:creator>JeromeGervais</dc:creator>
    <dc:date>2015-10-05T09:24:33Z</dc:date>
    <item>
      <title>Scale of shapefile layers</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360102#M4252</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 using runtime SDK 10.2.6 in a WPF app. I'm tring to add several layers of different kinds in my Map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// base
MyMapView.Map.Layers.Add(new OpenStreetMapLayer());

// first feature layer, from service
var serviceTable = await ServiceFeatureTable.OpenAsync(
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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%2FWildfire%2FFeatureServer%2F0" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"));&lt;/SPAN&gt;
var layer = new FeatureLayer(serviceTable)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; ID = "featureLayer"
};
MyMapView.Map.Layers.Add(layer);

// second feature layer, from shapefile (world-cities.shp in the sample data)
var shapefile = await ShapefileTable.OpenAsync(path);
var layer2 = new FeatureLayer(shapefile)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; ID = shapefile.Name,
&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayName = path,
};
MyMapView.Map.Layers.Add(layer2);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is, the layers are rendered, but the shapefile one does not have the same scale :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dezoom.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/129459_dezoom.PNG" style="width: 620px; height: 390px;" /&gt;&lt;/P&gt;&lt;P&gt;(when zooming)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="zoom.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/129460_zoom.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Could someboby please tell me what I'm missing here ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360102#M4252</guid>
      <dc:creator>JeromeGervais</dc:creator>
      <dc:date>2021-12-11T16:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scale of shapefile layers</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360103#M4253</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;The first thing to check is that your Shapefile has the same spatial reference as your MapView. However, since the Shapefile does actually display, I'd suggest checking that your Shapefile actually has valid spatial reference information (there should be a .prj file along side the .shp, .dbf, etc).&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, 05 Oct 2015 08:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360103#M4253</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2015-10-05T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scale of shapefile layers</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360104#M4254</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;Thanks for your answer.&lt;/P&gt;&lt;P&gt;In my test, I'm using one of the files included in the sample-data folder : world-cities.shp.&lt;/P&gt;&lt;P&gt;The .prj associated seems to be OK (GCS_WGS_1984) and is the same as the MapView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jérome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 09:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360104#M4254</guid>
      <dc:creator>JeromeGervais</dc:creator>
      <dc:date>2015-10-05T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scale of shapefile layers</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360105#M4255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerome -&lt;/P&gt;&lt;P&gt;The world cities in the sample-data folder are in geographic coordinates. Like most available basemaps, the OpenStreetMap data are in Web Mercator and shapefiles won't reproject to conform with a different coordinate system. To display the world-cities layer correctly, you can either: 1) add it to a map view that is in geographic coordinates (as the only layer, or with other WGS84 datasets, for example) or 2) reproject the shapefile into Web Mercator so it will overlay with most available basemaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used ArcMap to reproject the world-cities.shp dataset to Web Mercator and enclosed the result here. You should be able to add these data to your app and have them display correctly.&lt;/P&gt;&lt;P&gt;Thad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360105#M4255</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2015-10-05T16:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scale of shapefile layers</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360106#M4256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 12:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/scale-of-shapefile-layers/m-p/360106#M4256</guid>
      <dc:creator>JeromeGervais</dc:creator>
      <dc:date>2015-10-07T12:50:08Z</dc:date>
    </item>
  </channel>
</rss>

