<?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 KML Layer incorrectly placed features in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629754#M16182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the following code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;esri:Map x:Name="MyMap"&amp;gt;
 &amp;lt;esri:ArcGISTiledMapServiceLayer ID="TopoLayer"
&amp;nbsp;&amp;nbsp; Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/&amp;gt;
 &amp;lt;esri:KmlLayer ID="layer" Url="http://wms.met.no/googleearth/symbols.kml" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/esri:Map&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to make some changes to the KmlLayer class in the toolkit.datasources from codeplex for it to download the kml. The changes can be &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18301-KML-layer-not-able-to-parse-KML-return-data" rel="nofollow noopener noreferrer" target="_blank"&gt;found here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Geometries of the features downloaded have correct X and Y. The layer displays just fine in Google Earth. In my map, the following image displays where the features are located. There are no other features anywhere else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://imgbin.org/images/5609.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question is, of course, why are they not displayed at the right location? Both layers have the same spatial reference. I'm using version 2.2 of the API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:47:54 GMT</pubDate>
    <dc:creator>BjørnarSundsbø</dc:creator>
    <dc:date>2021-12-12T02:47:54Z</dc:date>
    <item>
      <title>KML Layer incorrectly placed features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629754#M16182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the following code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;esri:Map x:Name="MyMap"&amp;gt;
 &amp;lt;esri:ArcGISTiledMapServiceLayer ID="TopoLayer"
&amp;nbsp;&amp;nbsp; Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/&amp;gt;
 &amp;lt;esri:KmlLayer ID="layer" Url="http://wms.met.no/googleearth/symbols.kml" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/esri:Map&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to make some changes to the KmlLayer class in the toolkit.datasources from codeplex for it to download the kml. The changes can be &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18301-KML-layer-not-able-to-parse-KML-return-data" rel="nofollow noopener noreferrer" target="_blank"&gt;found here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Geometries of the features downloaded have correct X and Y. The layer displays just fine in Google Earth. In my map, the following image displays where the features are located. There are no other features anywhere else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://imgbin.org/images/5609.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question is, of course, why are they not displayed at the right location? Both layers have the same spatial reference. I'm using version 2.2 of the API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629754#M16182</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2021-12-12T02:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: KML Layer incorrectly placed features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629755#M16183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The question is, of course, why are they not displayed at the right location? Both layers have the same spatial reference. I'm using version 2.2 of the API.&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure they have the same spatial reference? KML always returns data in 4326, and as far as I can tell, you have a WebMercator layer as basemap, which would explain why the data shows up down around 0,0. You will need to reproject your KML data to WebMercator after the features has loaded.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 16:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629755#M16183</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-11-11T16:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: KML Layer incorrectly placed features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629756#M16184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent. When you're right, you're right. Used the reprojector sample from the blog. Works just fine now. It would be an good addition to the toolkit, with the ability to override a method so on might be able to do client side reprojection for other spatial references.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 19:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629756#M16184</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2011-11-11T19:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: KML Layer incorrectly placed features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629757#M16185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you have to use a GeometryService to reproject?&amp;nbsp; I am still getting everything off of Africa even though I am using the OTB ArcGIS WMS for basemaps.&amp;nbsp; And i am using the AutoReproject.cs class from the blog. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Excellent. When you're right, you're right. Used the reprojector sample from the blog. Works just fine now. It would be an good addition to the toolkit, with the ability to override a method so on might be able to do client side reprojection for other spatial references.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 05:13:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629757#M16185</guid>
      <dc:creator>GregMcMenimen</dc:creator>
      <dc:date>2011-11-21T05:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: KML Layer incorrectly placed features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629758#M16186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;gmcmenimen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I used an online GeometryService. BaseMap was the URL in a previous post. Worked just fine for me. What reference system does your basemap use, and is it supported by the GeometryService?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 14:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629758#M16186</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2011-11-21T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: KML Layer incorrectly placed features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629759#M16187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My basemap is WebMercator.&amp;nbsp; My GeometryService should support WebMercator and WGS 84 I believe.&amp;nbsp; I will look at it again.&amp;nbsp; I thought that since it already looks at WebMercator in the code you could just use the &amp;lt;local:AutoProjector.Projector/&amp;gt; in the XAML.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 05:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629759#M16187</guid>
      <dc:creator>GregMcMenimen</dc:creator>
      <dc:date>2011-11-22T05:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: KML Layer incorrectly placed features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629760#M16188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From what I remember from reading the code, reprojecting between webmercator and WGS 84 should be supported client-side. Don't remember if you have to specify a geometryservice url regardless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry I'm not able to help you out further. But if you paste your XAML with layers, someone should be able to help you out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 19:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/kml-layer-incorrectly-placed-features/m-p/629760#M16188</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2011-11-23T19:16:10Z</dc:date>
    </item>
  </channel>
</rss>

