<?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 identify if Point within Polygon in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identify-if-point-within-polygon/m-p/482103#M3317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Point which&amp;nbsp;obtained through a long press MotionEvent.&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;Point mapPoint = &lt;SPAN style="color: #9876aa;"&gt;mMapView&lt;/SPAN&gt;.screenToLocation(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;android.graphics.Point(Math.&lt;SPAN&gt;round&lt;/SPAN&gt;(e.getX())&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;Math.&lt;SPAN&gt;round&lt;/SPAN&gt;(e.getY())))&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;However, I need to verify if the point is&amp;nbsp;lying within&amp;nbsp;the polygon. I can't find any API in Geometry which allows me to check if the point is located inside the polygon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2020 08:41:32 GMT</pubDate>
    <dc:creator>Kae_WoeiKang</dc:creator>
    <dc:date>2020-01-14T08:41:32Z</dc:date>
    <item>
      <title>identify if Point within Polygon</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identify-if-point-within-polygon/m-p/482103#M3317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Point which&amp;nbsp;obtained through a long press MotionEvent.&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;Point mapPoint = &lt;SPAN style="color: #9876aa;"&gt;mMapView&lt;/SPAN&gt;.screenToLocation(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;android.graphics.Point(Math.&lt;SPAN&gt;round&lt;/SPAN&gt;(e.getX())&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;Math.&lt;SPAN&gt;round&lt;/SPAN&gt;(e.getY())))&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;However, I need to verify if the point is&amp;nbsp;lying within&amp;nbsp;the polygon. I can't find any API in Geometry which allows me to check if the point is located inside the polygon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 08:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identify-if-point-within-polygon/m-p/482103#M3317</guid>
      <dc:creator>Kae_WoeiKang</dc:creator>
      <dc:date>2020-01-14T08:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: identify if Point within Polygon</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identify-if-point-within-polygon/m-p/482104#M3318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kae,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GeometryEngine class&amp;nbsp;has lots of geometry-on-geometry spatial operations&amp;nbsp;- you can try the GeometryEngine.contains static method -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#contains(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)" title="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#contains(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)"&gt;GeometryEngine (ArcGIS Runtime SDK for Android 100.7.0)&lt;/A&gt;&amp;nbsp;. There's a sample that demonstrates this method, along with a lot of other spatial relationships like intersects, within, etc -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/java/sample-code/spatial-relationships/" title="https://developers.arcgis.com/android/latest/java/sample-code/spatial-relationships/"&gt;Spatial Relationships | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 12:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identify-if-point-within-polygon/m-p/482104#M3318</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2020-01-14T12:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: identify if Point within Polygon</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identify-if-point-within-polygon/m-p/482105#M3319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Thanks! I just found the functions which works like magic.&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;boolean &lt;/SPAN&gt;isContain = GeometryEngine.&lt;SPAN&gt;contains&lt;/SPAN&gt;(p&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;ltLn)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 00:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identify-if-point-within-polygon/m-p/482105#M3319</guid>
      <dc:creator>Kae_WoeiKang</dc:creator>
      <dc:date>2020-01-15T00:17:17Z</dc:date>
    </item>
  </channel>
</rss>

