<?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 Is it possible to cast a segment of polyline feature into a line feature?? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-it-possible-to-cast-a-segment-of-polyline/m-p/265335#M1737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to know If my touch is on a line or not. I could not figure out how to do it with polyline. If I can cast each segment into a line, then I can check it using "Y= mx + c". But I am not able to get individual segment from my polyline and I dont see any functions in the SDK to acheive this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea on how to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Cast segment of polyline into a line?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Or, check if a point is on a polyline or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 18:56:51 GMT</pubDate>
    <dc:creator>Hari_PrasathPalani</dc:creator>
    <dc:date>2013-08-21T18:56:51Z</dc:date>
    <item>
      <title>Is it possible to cast a segment of polyline feature into a line feature??</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-it-possible-to-cast-a-segment-of-polyline/m-p/265335#M1737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to know If my touch is on a line or not. I could not figure out how to do it with polyline. If I can cast each segment into a line, then I can check it using "Y= mx + c". But I am not able to get individual segment from my polyline and I dont see any functions in the SDK to acheive this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea on how to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Cast segment of polyline into a line?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Or, check if a point is on a polyline or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 18:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-it-possible-to-cast-a-segment-of-polyline/m-p/265335#M1737</guid>
      <dc:creator>Hari_PrasathPalani</dc:creator>
      <dc:date>2013-08-21T18:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to cast a segment of polyline feature into a line feature??</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-it-possible-to-cast-a-segment-of-polyline/m-p/265336#M1738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You use the GeometryEngine.touches() method to detemine if one geometry touches another geometry.&amp;nbsp; A simple example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Geometry baseGeom = new Point(-130, 10);
Polyline polyline = new Polyline();
polyline.startPath(new Point(-130, 10));
polyline.lineTo(-131, 15);
polyline.lineTo(-140, 20);

boolean isTouched = GeometryEngine.touches(baseGeom, polyline, sr);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where sr is a valid spatial reference for the geometries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-it-possible-to-cast-a-segment-of-polyline/m-p/265336#M1738</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2021-12-11T12:59:02Z</dc:date>
    </item>
  </channel>
</rss>

