<?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: IdentifyLayersAsync Identifies Polygon Hole in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265235#M3139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike, the tolerance is currently set at 1.&amp;nbsp; I've pared the code down to a minimum to reproduce the issue.&amp;nbsp; I also tested with IdentifyLayerAsync, and get the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private async void MyMapView_GeoViewTapped(object sender, GeoViewInputEventArgs e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;IReadOnlyList&amp;lt;IdentifyLayerResult&amp;gt; idrList = await MyMapView.IdentifyLayersAsync(e.Position, 1, false, 100);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (IdentifyLayerResult idr in idrList)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (idr.LayerContent == subzones)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show("id layers: " + idr.GeoElements.Count.ToString());&amp;nbsp; //returns 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IdentifyLayerResult result = await MyMapView.IdentifyLayerAsync(subzones, e.Position, 1, false, 100);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show("id layer: " + result.GeoElements.Count.ToString());&amp;nbsp; //returns 2&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the time being, I have come up with a workaround to exclude the outer polygon that I can use if this issue can't be resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for looking into this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 16:42:50 GMT</pubDate>
    <dc:creator>DJurgella</dc:creator>
    <dc:date>2018-03-15T16:42:50Z</dc:date>
    <item>
      <title>IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265233#M3137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a polygon featureclass loaded into a Runtime SDK map from an mmpk. This featureclass contains polygons with holes cut out of them and filled by other polygons. An IdentifyLayersAsync with a point from GeoViewTapped at the location of an inner polygon will&amp;nbsp;return in its results both the inner polygon and the surrounding donut polygon. Is this expected behavior for identify? If so is there a way to exclude the polygon with the hole from the identify results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265233#M3137</guid>
      <dc:creator>DJurgella</dc:creator>
      <dc:date>2018-03-14T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265234#M3138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you post the section of&amp;nbsp;code where you are running the identify?&amp;nbsp;The&amp;nbsp;polygon with the hole should not be returned in the results when performing an identify operation - what tolerance are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265234#M3138</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-03-15T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265235#M3139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike, the tolerance is currently set at 1.&amp;nbsp; I've pared the code down to a minimum to reproduce the issue.&amp;nbsp; I also tested with IdentifyLayerAsync, and get the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private async void MyMapView_GeoViewTapped(object sender, GeoViewInputEventArgs e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;IReadOnlyList&amp;lt;IdentifyLayerResult&amp;gt; idrList = await MyMapView.IdentifyLayersAsync(e.Position, 1, false, 100);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (IdentifyLayerResult idr in idrList)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (idr.LayerContent == subzones)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show("id layers: " + idr.GeoElements.Count.ToString());&amp;nbsp; //returns 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IdentifyLayerResult result = await MyMapView.IdentifyLayerAsync(subzones, e.Position, 1, false, 100);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show("id layer: " + result.GeoElements.Count.ToString());&amp;nbsp; //returns 2&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the time being, I have come up with a workaround to exclude the outer polygon that I can use if this issue can't be resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for looking into this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265235#M3139</guid>
      <dc:creator>DJurgella</dc:creator>
      <dc:date>2018-03-15T16:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265236#M3140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to decrease the "tolerance" value you provide to IdentifyLayersAsync(...).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From our Doc:&lt;/P&gt;&lt;P&gt;"Tolerance: radius in points specifying how precise the identify operation should be. A value of 0 means that it should be extremely precise - only those features appearing at the exact coordinates should be returned. A value of 22 (a good default for touch displays which covers an average finger tap) means features appearing within a 44pt buffer can also be returned. Max value permitted is 100. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 23:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265236#M3140</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2018-03-15T23:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265237#M3141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The tolerance is 1. Can it be less than 1? In any case I don't think it is a tolerance issue since if I click on one side of the inner polygon line I get both the inner and outer polygon and if I click on the other side I only get the outer polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The spatial reference of the map view is wkid 3857.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 18:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265237#M3141</guid>
      <dc:creator>DJurgella</dc:creator>
      <dc:date>2018-03-16T18:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265238#M3142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to provide the two geometries in Json and the&amp;nbsp;e.Position value you used&amp;nbsp;so we can try to reproduce the behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 22:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265238#M3142</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2018-03-16T22:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265239#M3143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following e.Position and 2 geometries are from clicking on the inner polygon within the donut hole.&lt;/P&gt;&lt;P&gt;e.Position:&lt;/P&gt;&lt;P&gt;541,312&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geometry1:&lt;/P&gt;&lt;P&gt;{"rings":[[[559988.43503937125,948153.2470472455],[559980.01968504116,947270.72145669162],[559977.09547244012,946964.07874015719],[559988.8385826759,946904.49770341069],[559972.35465879366,946875.18274278194],[559973.1305774264,946854.89041994512],[559977.25853018463,946746.92257218063],[559977.25853018463,946220.80675853044],[559974.72670603544,946008.48261155188],[559975.03871390969,945514.87860892713],[559993.07545931637,945477.45866141468],[559973.47900262475,945424.18963254243],[559973.07545931637,944837.81561680138],[559973.9104330726,944785.31988188624],[559975.67650918663,944674.30479002744],[559969.08661417291,944312.96358267963],[559997.15551181138,944271.12270341069],[559780.39304462075,944273.421916008],[559432.22867454216,944277.11482939869],[559136.85859579965,944285.68077427894],[558473.80971128494,944287.28280840069],[557358.22670603544,944321.42257218063],[556131.74573490769,944336.90977690369],[555646.58070866019,944350.69061680138],[555566.89074803144,944352.95374015719],[555385.35761154816,944356.91666666418],[554760.68963254616,944370.55380577594],[554728.23064304516,944371.26279527694],[554734.74048556387,945077.91666666418],[554740.35859579965,945687.74967191368],[554745.07644356787,946994.86154855788],[554735.40124671906,949002.49967191368],[554733.63779527694,949368.39566928893],[554732.21948818862,949662.68766403943],[555045.15354330838,949654.50459317863],[555617.09744094312,949639.54888451099],[556034.55872703344,949628.63254593313],[556685.70374015719,949612.01476377994],[558695.51574803144,949560.89566928893],[559558.36843831837,949536.96062991768],[559991.02362204716,949527.81660105288],[559983.70964566991,949466.33464566618],[559988.80774278194,948232.12664041668],[560003.68471128494,948205.39074803144],[559988.7555774264,948186.85564304143],[559988.43503937125,948153.2470472455]],[[558020.3694225736,947656.8290682435],[557739.1194225736,947703.7040682435],[557713.07775590569,947500.5790682435],[557996.6259842515,947455.00885827094],[558020.3694225736,947656.8290682435]]],"spatialReference":{"wkid":2868}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geometry2:&lt;/P&gt;&lt;P&gt;{"rings":[[[558020.3694225736,947656.8290682435],[557996.6259842515,947455.00885827094],[557713.07775590569,947500.5790682435],[557739.1194225736,947703.7040682435],[558020.3694225736,947656.8290682435]]],"spatialReference":{"wkid":2868}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the next geometry is from clicking on the outer polygon only.&lt;/P&gt;&lt;P&gt;e.Position:&lt;/P&gt;&lt;P&gt;551,119&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geometry:&lt;/P&gt;&lt;P&gt;{"rings":[[[559988.43503937125,948153.2470472455],[559980.01968504116,947270.72145669162],[559977.09547244012,946964.07874015719],[559988.8385826759,946904.49770341069],[559972.35465879366,946875.18274278194],[559973.1305774264,946854.89041994512],[559977.25853018463,946746.92257218063],[559977.25853018463,946220.80675853044],[559974.72670603544,946008.48261155188],[559975.03871390969,945514.87860892713],[559993.07545931637,945477.45866141468],[559973.47900262475,945424.18963254243],[559973.07545931637,944837.81561680138],[559973.9104330726,944785.31988188624],[559975.67650918663,944674.30479002744],[559969.08661417291,944312.96358267963],[559997.15551181138,944271.12270341069],[559780.39304462075,944273.421916008],[559432.22867454216,944277.11482939869],[559136.85859579965,944285.68077427894],[558473.80971128494,944287.28280840069],[557358.22670603544,944321.42257218063],[556131.74573490769,944336.90977690369],[555646.58070866019,944350.69061680138],[555566.89074803144,944352.95374015719],[555385.35761154816,944356.91666666418],[554760.68963254616,944370.55380577594],[554728.23064304516,944371.26279527694],[554734.74048556387,945077.91666666418],[554740.35859579965,945687.74967191368],[554745.07644356787,946994.86154855788],[554735.40124671906,949002.49967191368],[554733.63779527694,949368.39566928893],[554732.21948818862,949662.68766403943],[555045.15354330838,949654.50459317863],[555617.09744094312,949639.54888451099],[556034.55872703344,949628.63254593313],[556685.70374015719,949612.01476377994],[558695.51574803144,949560.89566928893],[559558.36843831837,949536.96062991768],[559991.02362204716,949527.81660105288],[559983.70964566991,949466.33464566618],[559988.80774278194,948232.12664041668],[560003.68471128494,948205.39074803144],[559988.7555774264,948186.85564304143],[559988.43503937125,948153.2470472455]],[[558020.3694225736,947656.8290682435],[557739.1194225736,947703.7040682435],[557713.07775590569,947500.5790682435],[557996.6259842515,947455.00885827094],[558020.3694225736,947656.8290682435]]],"spatialReference":{"wkid":2868}}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 23:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265239#M3143</guid>
      <dc:creator>DJurgella</dc:creator>
      <dc:date>2018-03-16T23:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync Identifies Polygon Hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265240#M3144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what results do you get when you try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;MapPoint pt = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; MapPoint(-12510471.4877441, 3975740.5774242762, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; SpatialReference(3857));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; results = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MyMapView.IdentifyLayersAsync(MyMapView.LocationToScreen(pt), 1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;What version of the ArcGIS Runtime .Net API are you using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;Tony&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 17:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/identifylayersasync-identifies-polygon-hole/m-p/265240#M3144</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2018-03-20T17:49:46Z</dc:date>
    </item>
  </channel>
</rss>

