<?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: Finding out whether lat/long position within Polygon. in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/finding-out-whether-lat-long-position-within/m-p/652101#M4492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;GeometryEngine.contains static method -&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fandroid%2Flatest%2Fapi-reference%2Freference%2Fcom%2Fesri%2Farcgisruntime%2Fgeometry%2FGeometryEngine.html%23contains%28com.esri.arcgisruntime.geometry.Geometry%2Ccom.esri.arcgisruntime.geometry.Geometry%29" rel="nofollow" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;GeometryEngine (ArcGIS Runtime SDK for Android 100.7.0)&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;able to serve the purpose of&amp;nbsp;verifying.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; border: 0px; font-size: 9pt;"&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;boolean &lt;/SPAN&gt;isContain = GeometryEngine.&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 12px;"&gt;contains&lt;/SPAN&gt;(p&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;, &lt;/SPAN&gt;ltLn)&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2020 00:19:43 GMT</pubDate>
    <dc:creator>Kae_WoeiKang</dc:creator>
    <dc:date>2020-01-15T00:19:43Z</dc:date>
    <item>
      <title>Finding out whether lat/long position within Polygon.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/finding-out-whether-lat-long-position-within/m-p/652099#M4490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" data-value="0"&gt;I am working on a system that will work offline, so I exported my map data to a geodatabase.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;I need to check if the GPS coordinate is within a polygon of my geodatabase and return the record table of that polygon.&lt;/P&gt;&lt;P&gt;Below is the code snippet that reads my geodatabase:&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" data-value="0"&gt;I am working on a system that will work offline, so I exported my map data to a geodatabase.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;I need to check if the GPS coordinate is within a polygon of my geodatabase and return the record table of that polygon.&lt;/P&gt;&lt;P&gt;Below is the code snippet that reads my geodatabase:&lt;/P&gt;&lt;/DIV&gt;&lt;PRE class=""&gt;&lt;PRE class=""&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;void&lt;/SPAN&gt;&lt;SPAN class=""&gt; loadGeodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;/SPAN&gt;&lt;SPAN class=""&gt;String&lt;/SPAN&gt;&lt;SPAN class=""&gt; path&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;    path &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Environment&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getExternalStorageDirectory&lt;/SPAN&gt;&lt;SPAN class=""&gt;().&lt;/SPAN&gt;&lt;SPAN class=""&gt;getPath&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"/gdbuam.geodatabase"&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;SPAN class=""&gt;     &lt;/SPAN&gt;&lt;SPAN class=""&gt;final&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Geodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt; geodatabase &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;new&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Geodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;/SPAN&gt;&lt;SPAN class=""&gt;Log&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;d&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"GEO"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; path&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt;     geodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;loadAsync&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;     geodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;addDoneLoadingListener&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;geodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getLoadStatus&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;==&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;LoadStatus&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;LOADED&lt;/SPAN&gt;&lt;SPAN class=""&gt;){&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;/SPAN&gt;&lt;SPAN class=""&gt;GeodatabaseFeatureTable&lt;/SPAN&gt;&lt;SPAN class=""&gt; table &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; geodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getGeodatabaseFeatureTableByServiceLayerId&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;/SPAN&gt;&lt;SPAN class=""&gt;System&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;out&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;println&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Nome da tabela: "&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt; table&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getTableName&lt;/SPAN&gt;&lt;SPAN class=""&gt;());&lt;/SPAN&gt;&lt;SPAN class=""&gt;           &lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;            &lt;/SPAN&gt;&lt;SPAN class=""&gt;Toast&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;makeText&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Screen_Pre_Certificado_Tractor&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;this&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Erro ao carregar!!!!"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Toast&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;LENGTH_LONG&lt;/SPAN&gt;&lt;SPAN class=""&gt;).&lt;/SPAN&gt;&lt;SPAN class=""&gt;show&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;        &lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;    &lt;/SPAN&gt;&lt;SPAN class=""&gt;});&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 21:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/finding-out-whether-lat-long-position-within/m-p/652099#M4490</guid>
      <dc:creator>Jose_Renato_deMelo</dc:creator>
      <dc:date>2019-10-15T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out whether lat/long position within Polygon.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/finding-out-whether-lat-long-position-within/m-p/652100#M4491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing the same issue. I have several polygons drew on map; and I have a long press MotionEvent. The user will need to long press on of the polygon, and my software have to identify if the coordinate is lying within which polygon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you successfully resolve this issue? It would be great if you able to share the solution. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue's thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/246475"&gt;identify if Point within Polygon&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/finding-out-whether-lat-long-position-within/m-p/652100#M4491</guid>
      <dc:creator>Kae_WoeiKang</dc:creator>
      <dc:date>2020-01-14T09:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out whether lat/long position within Polygon.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/finding-out-whether-lat-long-position-within/m-p/652101#M4492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;GeometryEngine.contains static method -&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fandroid%2Flatest%2Fapi-reference%2Freference%2Fcom%2Fesri%2Farcgisruntime%2Fgeometry%2FGeometryEngine.html%23contains%28com.esri.arcgisruntime.geometry.Geometry%2Ccom.esri.arcgisruntime.geometry.Geometry%29" rel="nofollow" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;GeometryEngine (ArcGIS Runtime SDK for Android 100.7.0)&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;able to serve the purpose of&amp;nbsp;verifying.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; border: 0px; font-size: 9pt;"&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;boolean &lt;/SPAN&gt;isContain = GeometryEngine.&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 12px;"&gt;contains&lt;/SPAN&gt;(p&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;, &lt;/SPAN&gt;ltLn)&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 00:19:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/finding-out-whether-lat-long-position-within/m-p/652101#M4492</guid>
      <dc:creator>Kae_WoeiKang</dc:creator>
      <dc:date>2020-01-15T00:19:43Z</dc:date>
    </item>
  </channel>
</rss>

