<?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 Get all graphics under a rectangle in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/get-all-graphics-under-a-rectangle/m-p/1234088#M11487</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;my goal is to get all graphics(in all visible layers) under a certain&amp;nbsp;rectangle, which is drawn on the screen.&lt;BR /&gt;&lt;BR /&gt;to do this, i wat thinking about 2 ways(in pseudo-code)&lt;BR /&gt;First - one is by using&amp;nbsp;&lt;STRONG&gt;GeometryEngine.Intersection(Geometry, Geometry)&lt;/STRONG&gt;&lt;BR /&gt;for-each visible layer that i have&lt;BR /&gt;for-each graphic in that layer&lt;BR /&gt;do&amp;nbsp;&amp;nbsp;GeometryEngine.Intersection(rectangle,&amp;nbsp;graphic.geometry)&lt;BR /&gt;if true add it my collection&lt;BR /&gt;&lt;BR /&gt;Second- use &lt;STRONG&gt;GeoView.IdentifyGraphicsOverlayAsync(GraphicsOverlay, Point, Double, Boolean)&lt;BR /&gt;&lt;/STRONG&gt;because for some reason the&amp;nbsp;&lt;EM&gt;tolerance maximum value&amp;nbsp;&lt;/EM&gt;is 100&lt;BR /&gt;divide(somehow) my rectangle to 100 by 100 parts (or 50 by 50, and take the middle point on the rectangle)&lt;BR /&gt;for-each visible layer that i have&lt;BR /&gt;and for each part call&amp;nbsp;IdentifyGraphicsOverlayAsync or the corresponding layer&lt;BR /&gt;add the results to my collection&lt;BR /&gt;&lt;BR /&gt;my question is, if i have 10k+(maybe even 100k+) visible object on my screen in many different layers&lt;BR /&gt;which way is more efficient(or maybe there's even a better way).&lt;BR /&gt;and is there a possibility to run those function on different(non-ui) thread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 14:09:02 GMT</pubDate>
    <dc:creator>ofirrosner</dc:creator>
    <dc:date>2022-11-22T14:09:02Z</dc:date>
    <item>
      <title>Get all graphics under a rectangle</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/get-all-graphics-under-a-rectangle/m-p/1234088#M11487</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;my goal is to get all graphics(in all visible layers) under a certain&amp;nbsp;rectangle, which is drawn on the screen.&lt;BR /&gt;&lt;BR /&gt;to do this, i wat thinking about 2 ways(in pseudo-code)&lt;BR /&gt;First - one is by using&amp;nbsp;&lt;STRONG&gt;GeometryEngine.Intersection(Geometry, Geometry)&lt;/STRONG&gt;&lt;BR /&gt;for-each visible layer that i have&lt;BR /&gt;for-each graphic in that layer&lt;BR /&gt;do&amp;nbsp;&amp;nbsp;GeometryEngine.Intersection(rectangle,&amp;nbsp;graphic.geometry)&lt;BR /&gt;if true add it my collection&lt;BR /&gt;&lt;BR /&gt;Second- use &lt;STRONG&gt;GeoView.IdentifyGraphicsOverlayAsync(GraphicsOverlay, Point, Double, Boolean)&lt;BR /&gt;&lt;/STRONG&gt;because for some reason the&amp;nbsp;&lt;EM&gt;tolerance maximum value&amp;nbsp;&lt;/EM&gt;is 100&lt;BR /&gt;divide(somehow) my rectangle to 100 by 100 parts (or 50 by 50, and take the middle point on the rectangle)&lt;BR /&gt;for-each visible layer that i have&lt;BR /&gt;and for each part call&amp;nbsp;IdentifyGraphicsOverlayAsync or the corresponding layer&lt;BR /&gt;add the results to my collection&lt;BR /&gt;&lt;BR /&gt;my question is, if i have 10k+(maybe even 100k+) visible object on my screen in many different layers&lt;BR /&gt;which way is more efficient(or maybe there's even a better way).&lt;BR /&gt;and is there a possibility to run those function on different(non-ui) thread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/get-all-graphics-under-a-rectangle/m-p/1234088#M11487</guid>
      <dc:creator>ofirrosner</dc:creator>
      <dc:date>2022-11-22T14:09:02Z</dc:date>
    </item>
  </channel>
</rss>

