<?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: Problem with reprojection in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318082#M8187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How you add that green point,&amp;nbsp; can you show your code here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 19:40:59 GMT</pubDate>
    <dc:creator>DeminHu</dc:creator>
    <dc:date>2012-04-27T19:40:59Z</dc:date>
    <item>
      <title>Problem with reprojection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318081#M8186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rogeryc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, I'm having the following issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13896[/ATTACH] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The yellow flag is a point feature with WGS 84 zone 20S projection (wkid: 32720), in a &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;feature layer&lt;/SPAN&gt;&lt;SPAN&gt;. Using Bing or ArcGIS Online map, that point is correctly drawn by the viewer. The green star is a graphic added to a &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;graphic layer&lt;/SPAN&gt;&lt;SPAN&gt; in the same projection (32720) with the same x,y coordinate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why are they drawn in different places?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Roger.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:22:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318081#M8186</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-27T19:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reprojection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318082#M8187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How you add that green point,&amp;nbsp; can you show your code here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318082#M8187</guid>
      <dc:creator>DeminHu</dc:creator>
      <dc:date>2012-04-27T19:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reprojection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318083#M8188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jenniferdnery&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does your GraphicsLayer Graphic.Geometry has its SpatialReference set?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 21:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318083#M8188</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-27T21:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reprojection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318084#M8189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rogeryc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How you add that green point,&amp;nbsp; can you show your code here?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var point = results[0].Geometry as MapPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GraphicsLayer graphicsLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer layer = Mapa.Layers["X,Y Point"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bool isNull = (layer != null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bool isGraphicLayer = (layer is GraphicsLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (isNull &amp;amp;&amp;amp; isGraphicLayer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer = layer as GraphicsLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer = new GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.ID = "X,Y Point";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.SetValue(MapApplication.LayerNameProperty, nombreCapaGrafica);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer.ClearGraphics();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graphicsLayer.Graphics.Add(results[0]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (MapApplication.Current.Map.Layers[graphicsLayer.ID] == null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapApplication.Current.Map.Layers.Add(graphicsLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318084#M8189</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-05-02T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reprojection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318085#M8190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rogeryc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does your GraphicsLayer Graphic.Geometry has its SpatialReference set?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No, the spatial reference is null, and I don't know how to set it, because the SpatialReference property is read only. What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-reprojection/m-p/318085#M8190</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-05-02T15:10:37Z</dc:date>
    </item>
  </channel>
</rss>

