<?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 services slow, can we multi-thread? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-services-slow-can-we-multi-thread/m-p/73877#M1805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/silverlight/sample-code/start.htm#Project"&gt;Geometry Service&lt;/A&gt;&lt;SPAN&gt; to project all your graphics list in one shot and it will be Async.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After projection complete you can assign your symbology.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Feb 2014 05:45:27 GMT</pubDate>
    <dc:creator>AhmedEl-Sisi</dc:creator>
    <dc:date>2014-02-23T05:45:27Z</dc:date>
    <item>
      <title>Projection services slow, can we multi-thread?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-services-slow-can-we-multi-thread/m-p/73876#M1804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;we have a map that displays a large number of graphics (in a graphic layer). We set up the property myGraphicLayer.ProjectionService. We then create&amp;nbsp; MapPoint's and set the spatial reference property. These map points are finally added as the geometry of the ESRI.ArcGIS.Client.Graphic objects which in turn go into the graphic layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

GeometryService geomser = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
GraphicsLayer gl = new GraphicsLayer();
gl.ProjectionService = geomser;
this.mapControl1.map1.Layers.Add(gl);

//FROM HERE ON WE NORMALLY DO IT IN A LOOP&amp;nbsp; TO ADD SEVERAL GRAPHICS

MapPoint p = new MapPoint(myLongitude, myLatitude, null);
p.SpatialReference = new ESRI.ArcGIS.Client.Geometry.SpatialReference(4267);
SimpleMarkerSymbol mark = new SimpleMarkerSymbol();

ESRI.ArcGIS.Client.Graphic g = new ESRI.ArcGIS.Client.Graphic();

g.Symbol = mark;
g.Geometry = p; 

gl.Graphics.Add(g);

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have noticed (and timed) the process of adding the graphics to the layer in a loop as described before. That does not take any time at all; yet the application pretty much freezes. We have checked in several points and it seems to be waiting on the projection service to comeback. My guess is that it sends the projections one by one and it is waiting for all of them to comeback?? Is there any way for us to set this up in a way that it sends a batch to the projection service? If not, then is there a way to make this work in a multi-threaded environment so the projections are happening yet the client can continue working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 19:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-services-slow-can-we-multi-thread/m-p/73876#M1804</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2014-02-21T19:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Projection services slow, can we multi-thread?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-services-slow-can-we-multi-thread/m-p/73877#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/silverlight/sample-code/start.htm#Project"&gt;Geometry Service&lt;/A&gt;&lt;SPAN&gt; to project all your graphics list in one shot and it will be Async.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After projection complete you can assign your symbology.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 05:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-services-slow-can-we-multi-thread/m-p/73877#M1805</guid>
      <dc:creator>AhmedEl-Sisi</dc:creator>
      <dc:date>2014-02-23T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Projection services slow, can we multi-thread?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-services-slow-can-we-multi-thread/m-p/73878#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The projection service does perform batching (but will group by geometry type). However it's NOT recommended to rely on the projection service to project large amounts of geometry. Instead it's better to create/retrieve the geometries in the correct spatial reference to begin with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 15:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/projection-services-slow-can-we-multi-thread/m-p/73878#M1806</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2014-02-23T15:10:44Z</dc:date>
    </item>
  </channel>
</rss>

