<?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 Can I search Map Graphics in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-i-search-map-graphics/m-p/517789#M3175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possisble to perform a spatial search on temporary map graphics?&amp;nbsp; For example, I have an add-in that add a bunch of temporary graphics to the map.&amp;nbsp; Can I take a geometry (such as the new circle in version 1500) that the user has created and use it to do a spatial query for all of the map graphics that fall inside it?&amp;nbsp; If not with the Graphics can it be done with the Notes that are on the map.&amp;nbsp; since this can be done with a FeatureLayer or Table it seems like it would be easy to do for the graphics or notes on the map, but I can't find anything in the API.&amp;nbsp; Could my graphics be programmatically be added to a Table and then I could do the search on the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry to put so many questions in one post.&amp;nbsp; Thanks for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brandon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Sep 2010 13:36:47 GMT</pubDate>
    <dc:creator>BrandonSchaeffer</dc:creator>
    <dc:date>2010-09-02T13:36:47Z</dc:date>
    <item>
      <title>Can I search Map Graphics</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-i-search-map-graphics/m-p/517789#M3175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possisble to perform a spatial search on temporary map graphics?&amp;nbsp; For example, I have an add-in that add a bunch of temporary graphics to the map.&amp;nbsp; Can I take a geometry (such as the new circle in version 1500) that the user has created and use it to do a spatial query for all of the map graphics that fall inside it?&amp;nbsp; If not with the Graphics can it be done with the Notes that are on the map.&amp;nbsp; since this can be done with a FeatureLayer or Table it seems like it would be easy to do for the graphics or notes on the map, but I can't find anything in the API.&amp;nbsp; Could my graphics be programmatically be added to a Table and then I could do the search on the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry to put so many questions in one post.&amp;nbsp; Thanks for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brandon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-i-search-map-graphics/m-p/517789#M3175</guid>
      <dc:creator>BrandonSchaeffer</dc:creator>
      <dc:date>2010-09-02T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search Map Graphics</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-i-search-map-graphics/m-p/517790#M3176</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;SPAN&gt;using the SDK all the graphics you add to the mapdisplay you can get back by iterating through the graphics collection. Same goes for Notes, look to the MapDisplay::Map::ChildItems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each has a geometry field that you can cast to the relevant geometryType (myGraphic.Geometry.GeometryType;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create a table easily from there and use the relevant pieces to populate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to get the graphic that a user clicked on within the map, set up this event handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_mapDisplay.GraphicClicked += new EventHandler&amp;lt;GraphicMouseEventArgs&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (_mapDisplay_GraphicClicked);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; void _mapDisplay_GraphicClicked(object sender, GraphicMouseEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic g = e.Graphics[0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Edan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 21:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-i-search-map-graphics/m-p/517790#M3176</guid>
      <dc:creator>EdanCain</dc:creator>
      <dc:date>2010-09-08T21:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search Map Graphics</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-i-search-map-graphics/m-p/517791#M3177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brandon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just as another option - you could consider using a Geometry Service for the intersect. If you have ArcGIS Server in house you could publish your own Geometry service, otherwise you could use one of the hosted services e.g. &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's an Intersect operation on the Geometry Server which would give you the functionality you need (see &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/index.html?intersect.html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/index.html?intersect.html&lt;/A&gt;&lt;SPAN&gt; for more information).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Plus there's a convenient SOAPConverter object in the Explorer API for convert Explorer geometries to SOAP geometries and vice versa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 07:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/can-i-search-map-graphics/m-p/517791#M3177</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2010-09-09T07:17:11Z</dc:date>
    </item>
  </channel>
</rss>

