<?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: Projection Points from Geographic to State Plane Coordinate system in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525227#M13531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use this instead: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~ProjectAsync%28IEnumerable%7BGraphic%7D,SpatialReference,Object%29.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~ProjectAsync%28IEnumerable%7BGraphic%7D,SpatialReference,Object%29.html&lt;/A&gt;&lt;SPAN&gt;. Second parameter UserToken is object. You can pass the original graphic (with attributes) here and then update its geometry from the ProjectCompleted event instead of adding the resulting graphic directly to your map, just use it's Geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void geometryService_ProjectCompleted(object sender, GraphicsEventArgs e)
{
 Graphic resultGraphic = e.Results[0];
 Graphic sourceGraphic = e.UserState as Graphic;
 if (resultGraphic.Geometry.Extent != null &amp;amp;&amp;amp; sourceGraphic != null)
 {
&amp;nbsp; sourceGraphic.Geometry = resultGraphic.Geometry;
&amp;nbsp; graphicsLayer.Graphics.Add(sourceGraphic);
&amp;nbsp; MyMap.PanTo(sourceGraphic.Geometry);
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 22:53:41 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-11T22:53:41Z</dc:date>
    <item>
      <title>Projection Points from Geographic to State Plane Coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525226#M13530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Here is what I want to do:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to project lat/lon points to state plane using geometry service. Everything works great but then I realized that, the projected points(graphics) don't keep their original attributes. In other words, the resulted graphics have no attributes whatsover. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Here is my question:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you keep track of the graphics after projection if they have no attribute? I have already tried projecting the points one after the other but that's not efficient. I need to project them in batches. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I strongly need help on this please&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 12:11:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525226#M13530</guid>
      <dc:creator>BernardNtiamoah</dc:creator>
      <dc:date>2011-04-05T12:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Projection Points from Geographic to State Plane Coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525227#M13531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use this instead: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~ProjectAsync%28IEnumerable%7BGraphic%7D,SpatialReference,Object%29.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~ProjectAsync%28IEnumerable%7BGraphic%7D,SpatialReference,Object%29.html&lt;/A&gt;&lt;SPAN&gt;. Second parameter UserToken is object. You can pass the original graphic (with attributes) here and then update its geometry from the ProjectCompleted event instead of adding the resulting graphic directly to your map, just use it's Geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void geometryService_ProjectCompleted(object sender, GraphicsEventArgs e)
{
 Graphic resultGraphic = e.Results[0];
 Graphic sourceGraphic = e.UserState as Graphic;
 if (resultGraphic.Geometry.Extent != null &amp;amp;&amp;amp; sourceGraphic != null)
 {
&amp;nbsp; sourceGraphic.Geometry = resultGraphic.Geometry;
&amp;nbsp; graphicsLayer.Graphics.Add(sourceGraphic);
&amp;nbsp; MyMap.PanTo(sourceGraphic.Geometry);
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525227#M13531</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T22:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Projection Points from Geographic to State Plane Coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525228#M13532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might also want to check out this blog post: &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2011/02/12/Auto_2D00_reprojecting-graphics-layers.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2011/02/12/Auto_2D00_reprojecting-graphics-layers.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 19:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525228#M13532</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-04-05T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Projection Points from Geographic to State Plane Coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525229#M13533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 01:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-points-from-geographic-to-state-plane/m-p/525229#M13533</guid>
      <dc:creator>BernardNtiamoah</dc:creator>
      <dc:date>2011-04-06T01:48:18Z</dc:date>
    </item>
  </channel>
</rss>

