<?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 Algorithm/Javascript code for esri.geometry.toScreenGeometry() in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/algorithm-javascript-code-for-esri-geometry/m-p/40535#M3474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can some one please share or point me to an algorithm and/or javascript code (actual implementation) of the ArcGIS' &lt;/SPAN&gt;&lt;STRONG&gt;esri.geometry.toScreenGeometry(extent, width, height, screenGeometry) &lt;/STRONG&gt;&lt;SPAN&gt; geometry service. Details at &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/namespace_geometry.html#namespace_geometry/toScreenGeometry"&gt;geometry service details&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to get screen geometries for about 15,000-20,000 points. Calling above geometry service in loop takes substatial amount of time around 5 secs for 15,000 points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a javascript function which would take input as above service and return me screen geometyr object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already got a javascript function for this &lt;/SPAN&gt;&lt;STRONG&gt;esri.geometry.geographicToWebMercator(geometry)&lt;/STRONG&gt;&lt;SPAN&gt; service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Niranjan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 08:48:52 GMT</pubDate>
    <dc:creator>NiranjanBorawake</dc:creator>
    <dc:date>2013-03-14T08:48:52Z</dc:date>
    <item>
      <title>Algorithm/Javascript code for esri.geometry.toScreenGeometry()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/algorithm-javascript-code-for-esri-geometry/m-p/40535#M3474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can some one please share or point me to an algorithm and/or javascript code (actual implementation) of the ArcGIS' &lt;/SPAN&gt;&lt;STRONG&gt;esri.geometry.toScreenGeometry(extent, width, height, screenGeometry) &lt;/STRONG&gt;&lt;SPAN&gt; geometry service. Details at &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/namespace_geometry.html#namespace_geometry/toScreenGeometry"&gt;geometry service details&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to get screen geometries for about 15,000-20,000 points. Calling above geometry service in loop takes substatial amount of time around 5 secs for 15,000 points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a javascript function which would take input as above service and return me screen geometyr object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already got a javascript function for this &lt;/SPAN&gt;&lt;STRONG&gt;esri.geometry.geographicToWebMercator(geometry)&lt;/STRONG&gt;&lt;SPAN&gt; service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Niranjan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 08:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/algorithm-javascript-code-for-esri-geometry/m-p/40535#M3474</guid>
      <dc:creator>NiranjanBorawake</dc:creator>
      <dc:date>2013-03-14T08:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Algorithm/Javascript code for esri.geometry.toScreenGeometry()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/algorithm-javascript-code-for-esri-geometry/m-p/40536#M3475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Niranjan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not think esri.geometry.toScreenGeometry calls geometry service. it will perform calculation on client side. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rahul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 11:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/algorithm-javascript-code-for-esri-geometry/m-p/40536#M3475</guid>
      <dc:creator>RahulMetangale1</dc:creator>
      <dc:date>2013-03-14T11:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Algorithm/Javascript code for esri.geometry.toScreenGeometry()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/algorithm-javascript-code-for-esri-geometry/m-p/40537#M3476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rahul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, you seem to be right, the calculation is performed at client side and no service is called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But is there a chance where I can get the algorithm that does this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My plan is to implement this algo in java code so that I reduce the work that is done on browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Niranjan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 07:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/algorithm-javascript-code-for-esri-geometry/m-p/40537#M3476</guid>
      <dc:creator>NiranjanBorawake</dc:creator>
      <dc:date>2013-03-15T07:58:46Z</dc:date>
    </item>
  </channel>
</rss>

