<?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: How to calculate large distance taking the Earth curvature into consideration in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578088#M19145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ming,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the Haversine formula to calculate the distance, here is a site that has the code in various languages:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.codecodex.com/wiki/Calculate_Distance_Between_Two_Points_on_a_Globe"&gt;http://www.codecodex.com/wiki/Calculate_Distance_Between_Two_Points_on_a_Globe&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will find that the haversine formula can have an error of nearly 3%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A better formula to use is the Vincenty formula which is more accurate, there are loads of examples out there:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/"&gt;http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 18:15:40 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2012-10-17T18:15:40Z</dc:date>
    <item>
      <title>How to calculate large distance taking the Earth curvature into consideration</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578084#M19141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to calculate distance of two points that is far away and at different place on Earth, for example flight-distance between major cities around the world.&amp;nbsp; It will be desirable to take the Earth curvature into the calculation.&amp;nbsp; Dose the "Distance or Near" function in ArcGIS do this?&amp;nbsp; I don't believe so.&amp;nbsp; How to do this and is there a script exist to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 16:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578084#M19141</guid>
      <dc:creator>BennettWilliams</dc:creator>
      <dc:date>2012-10-16T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate large distance taking the Earth curvature into consideration</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578085#M19142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ming,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Nautical Solution Extension you can use the Production Feature Builder to create great circle distances:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0106000001rr000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0106000001rr000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Link to the extension site, not sure how much it is but you can download a 60 day trial:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.esri.com/software/arcgis/extensions/nautical-solution/what-you-get"&gt;http://www.esri.com/software/arcgis/extensions/nautical-solution/what-you-get&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 17:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578085#M19142</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-16T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate large distance taking the Earth curvature into consideration</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578086#M19143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See also this blog: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://blogs.esri.com/esri/arcgis/2011/07/21/calculating_geodesic/" rel="nofollow" target="_blank"&gt;Calculating Geodesic Distance Between Points&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 19:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578086#M19143</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2012-10-16T19:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate large distance taking the Earth curvature into consideration</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578087#M19144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Anthony &amp;amp; dmhoneycutt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both of your reply are very helpful!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From Anthony's replay I learned that the problem is referring as "great circle distances".&amp;nbsp; I did further Google search and found the math formula for solve it in this site: &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Great-circle_distance"&gt;http://en.wikipedia.org/wiki/Great-circle_distance&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I plan to do the calculation with c# code anyway (for special selection and post processing), I can use the formula to calculate the great-circle distance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dmhoneycutt's replay prompt me to do a search in the ESRI SDK help, I found there is some interface to get the great-circle distance of two points.&amp;nbsp; So I can skip the formula and direct use the interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks both of you for opening the door for me!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ming&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 17:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578087#M19144</guid>
      <dc:creator>BennettWilliams</dc:creator>
      <dc:date>2012-10-17T17:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate large distance taking the Earth curvature into consideration</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578088#M19145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ming,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the Haversine formula to calculate the distance, here is a site that has the code in various languages:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.codecodex.com/wiki/Calculate_Distance_Between_Two_Points_on_a_Globe"&gt;http://www.codecodex.com/wiki/Calculate_Distance_Between_Two_Points_on_a_Globe&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will find that the haversine formula can have an error of nearly 3%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A better formula to use is the Vincenty formula which is more accurate, there are loads of examples out there:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/"&gt;http://www.gavaghan.org/blog/2007/08/06/c-gps-receivers-and-geocaching-vincentys-formula/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 18:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-calculate-large-distance-taking-the-earth/m-p/578088#M19145</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-10-17T18:15:40Z</dc:date>
    </item>
  </channel>
</rss>

