<?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: Why esri.geometry.getLength() and esri.geometry.geodesicLengths() are incompatibl in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94007#M8565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;They do two different things. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;getLength calculates a &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Euclidean_distance"&gt;Eudclidean distance&lt;/A&gt;&lt;SPAN&gt; AKA planar distance which assumes the world is flat. This is appropriate for short distances and/or when you're using a projected coordinate system, e.g. a UTM zone or State Plane. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;geodesicLengths calculates a &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Great-circle_distance"&gt;geodesic distance&lt;/A&gt;&lt;SPAN&gt; which is a measurement on a sphere. This is appropriate when you're measuring long distances on a globe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll also throw in a plug for a blog post Sterling from the server team did a while back about using the right coordinate system when measuring distances in a web app:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/03/05/Measuring-distances-and-areas-when-your-map-uses-the-Mercator-projection.aspx"&gt;Measuring distances and areas when your map uses the Mercator projection&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2011 19:40:21 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2011-07-25T19:40:21Z</dc:date>
    <item>
      <title>Why esri.geometry.getLength() and esri.geometry.geodesicLengths() are incompatible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94006#M8564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I calculate length of 2 points in METERS in webmercator SR, I received inconsistent results with esri.geometry.getLength() and esri.geometry.geodesicLengths():&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.geometry.geodesicLengths() result gives a number that is 15%-20% lower than the result of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.geometry.getLength().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On what function should I rely on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why this happens? what is more accurate?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 08:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94006#M8564</guid>
      <dc:creator>YardenCochav</dc:creator>
      <dc:date>2011-07-25T08:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why esri.geometry.getLength() and esri.geometry.geodesicLengths() are incompatibl</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94007#M8565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;They do two different things. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;getLength calculates a &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Euclidean_distance"&gt;Eudclidean distance&lt;/A&gt;&lt;SPAN&gt; AKA planar distance which assumes the world is flat. This is appropriate for short distances and/or when you're using a projected coordinate system, e.g. a UTM zone or State Plane. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;geodesicLengths calculates a &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Great-circle_distance"&gt;geodesic distance&lt;/A&gt;&lt;SPAN&gt; which is a measurement on a sphere. This is appropriate when you're measuring long distances on a globe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll also throw in a plug for a blog post Sterling from the server team did a while back about using the right coordinate system when measuring distances in a web app:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/03/05/Measuring-distances-and-areas-when-your-map-uses-the-Mercator-projection.aspx"&gt;Measuring distances and areas when your map uses the Mercator projection&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 19:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94007#M8565</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-25T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why esri.geometry.getLength() and esri.geometry.geodesicLengths() are incompatibl</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94008#M8566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I read this great post yesterday when I looked for articles regarding measurements, and it helped me a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have another question regarding the geodesicLength(). Is there a bug when using it in web-Mercator Bing maps? because i received&amp;nbsp; "0" or "NaN" value when measuring polyline of 2 points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 08:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94008#M8566</guid>
      <dc:creator>YardenCochav</dc:creator>
      <dc:date>2011-07-26T08:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why esri.geometry.getLength() and esri.geometry.geodesicLengths() are incompatibl</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94009#M8567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/29190"&gt;this thread describe&lt;/A&gt;&lt;SPAN&gt; your problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 13:46:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94009#M8567</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-26T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why esri.geometry.getLength() and esri.geometry.geodesicLengths() are incompatibl</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94010#M8568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops, previously forgot a link to the thread I was referencing. I updated my post. Not sure if the forum notifies you when I edit so I'm posting again...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 18:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-esri-geometry-getlength-and-esri-geometry/m-p/94010#M8568</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-26T18:14:06Z</dc:date>
    </item>
  </channel>
</rss>

