<?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: How to: Location accuracy circle intersect with feature layer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-location-accuracy-circle-intersect-with/m-p/760530#M5353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've made progress on this - I was able to use the GeometryEngine's buffer()/bufferGeodetic() methods to create a polygon (p) representing the location's accuracy circle.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Polygon p = GeometryEngine.&lt;SPAN&gt;bufferGeodetic&lt;/SPAN&gt;(
&amp;nbsp;&amp;nbsp;&amp;nbsp;GeometryEngine.&lt;SPAN&gt;project&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;location&lt;/SPAN&gt;.getPosition(), feature.getGeometry().getSpatialReference()), 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #660e7a;"&gt;location&lt;/SPAN&gt;.getHorizontalAccuracy(), &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;LinearUnit(LinearUnitId.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;METERS&lt;/SPAN&gt;), Double.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;NaN&lt;/SPAN&gt;, GeodeticCurveType.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;GEODESIC&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;Next I was able to pass polygon (p) into the&amp;nbsp;&lt;SPAN&gt;GeometryEngine's&amp;nbsp;overlaps() method but I'm having problems getting the units converted properly and/or polygon to represent a circle on my map:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Problems&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;GeometryEngine's&amp;nbsp;buffer() -&amp;nbsp;not sure&amp;nbsp;how to get the correct unit distance passed into buffer() method - is there a way to convert meters into&amp;nbsp;the feature layer's units (angular)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;GeometryEngine's bufferGeodetic - works well but when I add the resulting polygon to my graphics layer the shape is an ellipse (for all the GeodecticCurceTypes) vs a circle (what I expected, maybe wrongly?). Is the ellipse shapred polygon a result of the feature layer's units being angular and/or the spatial reference's (wkid=4329, GCS_North_American_1983) geographic projection?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:18:07 GMT</pubDate>
    <dc:creator>CharlesLoftis</dc:creator>
    <dc:date>2021-12-12T08:18:07Z</dc:date>
    <item>
      <title>How to: Location accuracy circle intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-location-accuracy-circle-intersect-with/m-p/760529#M5352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with ArcGIS Android's 100.x API,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a bit of a newbie with ArcGIS so forgive any incorrect use of terminology.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BACKGROUND&lt;/P&gt;&lt;P&gt;I am developing an app that must work in a completely offline environment. All maps (in this case they will be mobile map packages) are downloaded to devices before going offline. Each mmpk will have a feature layer&amp;nbsp;containing&amp;nbsp;a&amp;nbsp;closed polygon.&amp;nbsp;I need to be able to determine if my current location is within the polygon feature. That has proven to be easy enough using "GeometryEngine.&lt;SPAN&gt;within()".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROBLEM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem that&amp;nbsp;&lt;/SPAN&gt;I'm having is with an additional requirement: I also need to determine if the current location's accuracy circle insects with the polygon's boundary to indicate that the user "may be" within the feature's boundaries - think of it as a stoplight: green==inside, red==outside, yellow==close to the polygon boundary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that the GeometryEngine has methods like crosses, intersects, overlaps, touches, etc., but I don't know how to pass a circle representing the location's accuracy as a geometry. Suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-location-accuracy-circle-intersect-with/m-p/760529#M5352</guid>
      <dc:creator>CharlesLoftis</dc:creator>
      <dc:date>2018-08-14T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to: Location accuracy circle intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-location-accuracy-circle-intersect-with/m-p/760530#M5353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've made progress on this - I was able to use the GeometryEngine's buffer()/bufferGeodetic() methods to create a polygon (p) representing the location's accuracy circle.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Polygon p = GeometryEngine.&lt;SPAN&gt;bufferGeodetic&lt;/SPAN&gt;(
&amp;nbsp;&amp;nbsp;&amp;nbsp;GeometryEngine.&lt;SPAN&gt;project&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a;"&gt;location&lt;/SPAN&gt;.getPosition(), feature.getGeometry().getSpatialReference()), 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #660e7a;"&gt;location&lt;/SPAN&gt;.getHorizontalAccuracy(), &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;LinearUnit(LinearUnitId.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;METERS&lt;/SPAN&gt;), Double.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;NaN&lt;/SPAN&gt;, GeodeticCurveType.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;GEODESIC&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;Next I was able to pass polygon (p) into the&amp;nbsp;&lt;SPAN&gt;GeometryEngine's&amp;nbsp;overlaps() method but I'm having problems getting the units converted properly and/or polygon to represent a circle on my map:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Problems&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;GeometryEngine's&amp;nbsp;buffer() -&amp;nbsp;not sure&amp;nbsp;how to get the correct unit distance passed into buffer() method - is there a way to convert meters into&amp;nbsp;the feature layer's units (angular)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;GeometryEngine's bufferGeodetic - works well but when I add the resulting polygon to my graphics layer the shape is an ellipse (for all the GeodecticCurceTypes) vs a circle (what I expected, maybe wrongly?). Is the ellipse shapred polygon a result of the feature layer's units being angular and/or the spatial reference's (wkid=4329, GCS_North_American_1983) geographic projection?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:18:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-location-accuracy-circle-intersect-with/m-p/760530#M5353</guid>
      <dc:creator>CharlesLoftis</dc:creator>
      <dc:date>2021-12-12T08:18:07Z</dc:date>
    </item>
  </channel>
</rss>

