<?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 Issue to get subcurve from polyline, GeometryEngine.intersect in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-to-get-subcurve-from-polyline-geometryengine/m-p/6023#M548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am experiencing a strange behaviour, I am using GeometryEngine to find if a point is on the line. I am using intersect for that purpose. If it intersect i.e., point is on the Polyline, Then I get the subcurve, segments from start to the point. With the coordinates mentioned below, the GeometryEngine returns that the point is on the line, whereas, when I try to identify, where the point lies (using calculations), I find that the point is not on the line and I get the full line back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Polyline:
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'paths':[[[558282.4414999997,446456.8780000005],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558289.2401999999,445685.57799999974],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558286.9896,445626.9844000004],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558289.9265000001,445561.07840000093],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558293.3940000003,444489.8770000003]]],
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'spatialReference':{'wkid':3071,'latestWkid':3071}
}
Point:
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'x':558287.5473275795,
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'y':445877.7059446493,
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'spatialReference':{'wkid':3071}
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simplified code is &lt;A href="http://jsbin.com/yarugeqabe/1/edit?html,console,output" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know if there is a tolerance limit in the GeometryEngine which results in the wrong response. Or how I can Identify if a point is on a polyline?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:14:34 GMT</pubDate>
    <dc:creator>thejuskambi</dc:creator>
    <dc:date>2021-12-10T20:14:34Z</dc:date>
    <item>
      <title>Issue to get subcurve from polyline, GeometryEngine.intersect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-to-get-subcurve-from-polyline-geometryengine/m-p/6023#M548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am experiencing a strange behaviour, I am using GeometryEngine to find if a point is on the line. I am using intersect for that purpose. If it intersect i.e., point is on the Polyline, Then I get the subcurve, segments from start to the point. With the coordinates mentioned below, the GeometryEngine returns that the point is on the line, whereas, when I try to identify, where the point lies (using calculations), I find that the point is not on the line and I get the full line back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Polyline:
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'paths':[[[558282.4414999997,446456.8780000005],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558289.2401999999,445685.57799999974],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558286.9896,445626.9844000004],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558289.9265000001,445561.07840000093],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [558293.3940000003,444489.8770000003]]],
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'spatialReference':{'wkid':3071,'latestWkid':3071}
}
Point:
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'x':558287.5473275795,
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'y':445877.7059446493,
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'spatialReference':{'wkid':3071}
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simplified code is &lt;A href="http://jsbin.com/yarugeqabe/1/edit?html,console,output" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know if there is a tolerance limit in the GeometryEngine which results in the wrong response. Or how I can Identify if a point is on a polyline?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-to-get-subcurve-from-polyline-geometryengine/m-p/6023#M548</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2021-12-10T20:14:34Z</dc:date>
    </item>
  </channel>
</rss>

