<?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 Hit Test for a polygon on graphics layer? in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114285#M476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a built in method to test if a point (lat/long) is inside a poly drawn on a graphics layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 16:58:30 GMT</pubDate>
    <dc:creator>EzraSidran</dc:creator>
    <dc:date>2013-03-11T16:58:30Z</dc:date>
    <item>
      <title>Hit Test for a polygon on graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114285#M476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a built in method to test if a point (lat/long) is inside a poly drawn on a graphics layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 16:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114285#M476</guid>
      <dc:creator>EzraSidran</dc:creator>
      <dc:date>2013-03-11T16:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test for a polygon on graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114286#M477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You've got a couple of options...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1. FindGraphicsInHostCoordinates method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This performs a hittest operation on the GraphicsLayer based on a point (i.e. click point) in UI coordinates. &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.GraphicsLayer~FindGraphicsInHostCoordinates(Point,Int32).html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.GraphicsLayer~FindGraphicsInHostCoordinates(Point,Int32).html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2. GeometryService task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use a local or online Geometry server in conjunction with the GeometryService task. There are a variety of operations available which might give you some more flexibility - you probably want to use the RelationAsync() operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService_members.html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService_members.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 08:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114286#M477</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-03-13T08:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test for a polygon on graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114287#M478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot Mike!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 11:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114287#M478</guid>
      <dc:creator>EzraSidran</dc:creator>
      <dc:date>2013-03-13T11:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test for a polygon on graphics layer?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114288#M479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to get a list of graphics that's currently visible on the map using the FindGraphicsInHostCoordinates() method.&amp;nbsp; I pass in a Rect of the area on the screen where the map is displayed.&amp;nbsp; Most of the time this works. However, once in a while I would get the following exception.&amp;nbsp; I call this method while I handle the Map.ExtentChanged event.&amp;nbsp; Any idea what's going on here or how I can get around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Specified index is out of range or child at index is null. Do not call this method if VisualChildrenCount returns zero, indicating that the Visual has no children.
Parameter name: index
Actual value was 0.


&amp;nbsp;&amp;nbsp; at System.Windows.FrameworkElement.GetVisualChild(Int32 index)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Visual.InternalGet2DOr3DVisualChild(Int32 index)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.VisualTreeHelper.GetChild(DependencyObject reference, Int32 childIndex)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Symbols.GraphicElement.HitTestCore(GeometryHitTestParameters hitTestParameters)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Visual.HitTestGeometry(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, GeometryHitTestParameters geometryParams)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Visual.HitTestGeometry(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, GeometryHitTestParameters geometryParams)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Visual.HitTest(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters hitTestParameters)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.VisualTreeHelper.HitTest(Visual reference, HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters hitTestParameters)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.GraphicsLayer.FindGraphicsInHostCoordinates(Rect intersectingRect, Int32 maxHits)
&amp;nbsp;&amp;nbsp; at VTM.EsriMapControl.Common.LabelStacker.GetVisibleLabels()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/hit-test-for-a-polygon-on-graphics-layer/m-p/114288#M479</guid>
      <dc:creator>HuyHo</dc:creator>
      <dc:date>2021-12-11T06:46:44Z</dc:date>
    </item>
  </channel>
</rss>

