<?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 When to use &amp;amp;quot;project&amp;amp;quot; when calculating areas and lengths? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-to-use-amp-quot-project-amp-quot-when/m-p/5672#M521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Newbie here. I'm in the process of converting a Flex viewer to Javascript and currently working on a Draw and Measure widget. I noticed in the Flex version that a call to "project" is being made before the call to calculate lengths. I'm trying to understand when and why this needs to be called as opposed to just calling the "lengths" function of the GeometryService.&amp;nbsp; According to the sample documentation for the Javascript API the "Measure distances" sample is supposed to be using "project" but when I look at the sample code it is just calling the "lengths" function of GeometryService.&amp;nbsp; I understand it has something to do with the coordinate system being used by the map but if someone could provide some more detail for me on when to call "project" it would be very helpful. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 12:24:35 GMT</pubDate>
    <dc:creator>StanLambert</dc:creator>
    <dc:date>2014-05-23T12:24:35Z</dc:date>
    <item>
      <title>When to use &amp;quot;project&amp;quot; when calculating areas and lengths?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-to-use-amp-quot-project-amp-quot-when/m-p/5672#M521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Newbie here. I'm in the process of converting a Flex viewer to Javascript and currently working on a Draw and Measure widget. I noticed in the Flex version that a call to "project" is being made before the call to calculate lengths. I'm trying to understand when and why this needs to be called as opposed to just calling the "lengths" function of the GeometryService.&amp;nbsp; According to the sample documentation for the Javascript API the "Measure distances" sample is supposed to be using "project" but when I look at the sample code it is just calling the "lengths" function of GeometryService.&amp;nbsp; I understand it has something to do with the coordinate system being used by the map but if someone could provide some more detail for me on when to call "project" it would be very helpful. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 12:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-to-use-amp-quot-project-amp-quot-when/m-p/5672#M521</guid>
      <dc:creator>StanLambert</dc:creator>
      <dc:date>2014-05-23T12:24:35Z</dc:date>
    </item>
  </channel>
</rss>

