<?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: Bug in esri.geometry.geometricDensify in 2.2? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175196#M16275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I pretty much just got unlucky; I've got some code that is drawing lines of bearing, and uses 20,000 km as the default length.&amp;nbsp; Some of them just happened to have coordinates that caused the function to fail.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2011 13:46:02 GMT</pubDate>
    <dc:creator>PhillipReed</dc:creator>
    <dc:date>2011-05-02T13:46:02Z</dc:date>
    <item>
      <title>Bug in esri.geometry.geometricDensify in 2.2?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175194#M16273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This function seems to fail sometimes for points that are very far apart (20,000 km or so -- I'm not sure exactly where the error happens).&amp;nbsp; Instead of returning a Polyline that is broken up into lots of little segments, it returns a Polyline with two points, one of which is the original start point and the second of which is NaN,NaN.&amp;nbsp; For example, try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var pline = new esri.geometry.Polyline();
pline.addPath([[-48.6, 39.4], [130.9, -39.3]]);
var result = esri.geometry.geodesicDensify(pline, 10000);
if( isNaN( result.paths[0][1][0] ) ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("It's a bug!");
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changing the distance by even a short amount seems to work perfectly -- for example, replace the -48.6 above with a -48.5, and it runs just fine.&amp;nbsp; I've tested it in Firefox 4.0 and Chromium 12.0.747.0 in Ubuntu Linux 10.10, and it behaves exactly the same way in both browsers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody else see this?&amp;nbsp; Anybody know what's going wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 18:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175194#M16273</guid>
      <dc:creator>PhillipReed</dc:creator>
      <dc:date>2011-04-27T18:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in esri.geometry.geometricDensify in 2.2?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175195#M16274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a strange one...I think it is a bug. It looks like only it happens when the difference between x coords is between 179.5 and 180.5. How'd you find this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 23:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175195#M16274</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-04-28T23:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in esri.geometry.geometricDensify in 2.2?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175196#M16275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I pretty much just got unlucky; I've got some code that is drawing lines of bearing, and uses 20,000 km as the default length.&amp;nbsp; Some of them just happened to have coordinates that caused the function to fail.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 13:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175196#M16275</guid>
      <dc:creator>PhillipReed</dc:creator>
      <dc:date>2011-05-02T13:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in esri.geometry.geometricDensify in 2.2?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175197#M16276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you log this as a bug with Esri support?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175197#M16276</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-02T15:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in esri.geometry.geometricDensify in 2.2?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175198#M16277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Phillip,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a known limit of the algorithm itself, instead of a bug. When two points are nearly antipodal to each other, the algorithm couldn't converge to get the geodetic distance and azimuth. We will "fix" the issue by implementing another algorithm when the case happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 01:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-esri-geometry-geometricdensify-in-2-2/m-p/175198#M16277</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2011-06-02T01:38:13Z</dc:date>
    </item>
  </channel>
</rss>

