<?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: arcpy command  for &amp;quot;Select by location&amp;quot; tool ? in Cartography and Maps Questions</title>
    <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849967#M659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an equivalent for everything that exists in ArcToolbox regardless of whether it is ArcGIS pro or arcmap.&lt;/P&gt;&lt;P&gt;You can access the functionality of any tool in arctoolbox.&lt;/P&gt;&lt;P&gt;But 'tools' on a toolbar, or any other shortcut, are the domain of arcobjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have probably explored arcpy... but some may not have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/main/arcgis-pro-arcpy-reference.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/main/arcgis-pro-arcpy-reference.htm"&gt;ArcGIS Pro Python Reference—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for tool functionality and accessing it through scripts, then the code examples are given at the bottom of each tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/main/arcgis-pro-tool-reference.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/main/arcgis-pro-tool-reference.htm"&gt;ArcGIS Pro tool reference—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 15:12:59 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-10-17T15:12:59Z</dc:date>
    <item>
      <title>arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849962#M654</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;I have the following data :&lt;/P&gt;&lt;P&gt;- a raster catalog&lt;/P&gt;&lt;P&gt;- a feature class composed of several polygons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the polygons (the ENTIRE polygon) which contain the raster catalog or part of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked some tools in ArcMap, and I observed that the "&lt;STRONG&gt;Select by location&lt;/STRONG&gt;" tool works perfectly (not the tool Select Layer by location). The result is a selection of only the polygons (from the feature class layer) that contain the raster catalog. But I can't find anything about an arcpy command...&lt;/P&gt;&lt;P&gt;I found the "&lt;STRONG&gt;SelectLayerByLocation_management&lt;/STRONG&gt;" (Select Layer by location tool) but the resulting selection is empty, so it doesn't do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have information regarding the "&lt;STRONG&gt;Select by location&lt;/STRONG&gt;" tool adptation to arcpy ?&lt;/P&gt;&lt;P&gt;I have to use a tool that can handle raster catalog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 12:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849962#M654</guid>
      <dc:creator>FredCoud</dc:creator>
      <dc:date>2018-10-17T12:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849963#M655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-layer-by-location.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-layer-by-location.htm"&gt;Select Layer By Location—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="background-color: #ffffff; border-collapse: collapse; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-spacing: 0px 0px; color: #4c4c4c; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 26.35px; margin-bottom: 26.35px; orphans: 2; overflow: auto; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; width: 768.41px; word-spacing: 0px; border: 0.5px solid #cccccc;"&gt;&lt;TBODY style="overflow: auto; width: 100%;"&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;DIV style="border-left-color: #4c4c4c; border-left-style: none; border-left-width: 0px; border-right-color: #4c4c4c; border-right-style: none; border-right-width: 0px; font-weight: 300; padding: 0px;"&gt;in_layer&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;The features that will be evaluated against the &lt;SPAN style="font-family: &amp;amp;quot;"&gt;select_features&lt;/SPAN&gt; parameter. The selection will be applied to this layer.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;Feature Layer; Raster Layer; Mosaic Layer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could be that it stipulates a raster layer and not a raster catalog.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849963#M655</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-17T13:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849964#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to Dan's response:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/make-feature-layer.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/make-feature-layer.htm"&gt;Make Feature Layer—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/make-raster-layer.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/make-raster-layer.htm"&gt;Make Raster Layer—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/make-table-view.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/make-table-view.htm"&gt;Make Table View—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When interacting with features, rasters, or tables, in the arcpy environment you need to turn them into 'layers' or 'views' respectively and interact with those.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849964#M656</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-10-17T13:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849965#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not quite understand what you are both saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was referring only to the &lt;STRONG&gt;Select by location&lt;/STRONG&gt; tool in ArcMap, and wondering if the arcpy version of this tool actually existed. This tool works fine with my raster catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mean to use the function &lt;STRONG&gt;MakeRasterCatalogLayer_management&lt;/STRONG&gt; on my raster catalog and then to use &lt;STRONG&gt;SelectLayerByLocation_management&lt;/STRONG&gt; on its result, it does not work, I have already tried it.I set the raster catalog into the "&lt;EM&gt;in_layer"&lt;/EM&gt; field.When I say it does not work, I mean it returns something that is empty. When i printed the result, it only returned the name of the catalog. Nothing more.&lt;/P&gt;&lt;P&gt;So I tried the opposite, I set the raster catalog in the filed &lt;EM&gt;"select_features"&lt;/EM&gt;. Then I had the mistake saying that the input data is not a feature data.&lt;/P&gt;&lt;P&gt;So I think I tried pretty much everything with this &lt;STRONG&gt;SelectLayerByLocation&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is : is there a python equivalent to &lt;STRONG&gt;SelectByLocation&lt;/STRONG&gt; ? It seems everyone use &lt;STRONG&gt;SelectLayerByLocation&lt;/STRONG&gt; on the net, but it's not the one I want... Unless both functions are in fact one ? Then I would be interested in knowing how it is called..&amp;nbsp; Because I cannot reproduce anything with the other function...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849965#M657</guid>
      <dc:creator>FredCoud</dc:creator>
      <dc:date>2018-10-17T14:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849966#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt;...is there a python equivalent to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold; font-size: 14px;"&gt;SelectByLocation&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;...&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;It seems everyone use&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;SelectLayerByLocation&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;When you use an actual geoprocessing tool, (as I understand them) it's doing some work behind the scenes for you.&amp;nbsp; As mentioned above;&amp;nbsp;&lt;EM&gt;When interacting with features, rasters, or tables, &lt;STRONG&gt;in the arcpy environment&lt;/STRONG&gt;...&amp;nbsp;&amp;nbsp;&lt;/EM&gt;you don't have the luxury of the tool doing the work behind the scenes.&amp;nbsp; You need to do some additional lifting.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Make sense?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849966#M658</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-10-17T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849967#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an equivalent for everything that exists in ArcToolbox regardless of whether it is ArcGIS pro or arcmap.&lt;/P&gt;&lt;P&gt;You can access the functionality of any tool in arctoolbox.&lt;/P&gt;&lt;P&gt;But 'tools' on a toolbar, or any other shortcut, are the domain of arcobjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have probably explored arcpy... but some may not have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/main/arcgis-pro-arcpy-reference.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/main/arcgis-pro-arcpy-reference.htm"&gt;ArcGIS Pro Python Reference—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for tool functionality and accessing it through scripts, then the code examples are given at the bottom of each tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/main/arcgis-pro-tool-reference.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/main/arcgis-pro-tool-reference.htm"&gt;ArcGIS Pro tool reference—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849967#M659</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-17T15:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849968#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I think I see ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, the &lt;STRONG&gt;SelectByLocation&lt;/STRONG&gt; is on a toolbar, and I could not find it in the toolbox... So that means that it is an &lt;EM&gt;arcobject&lt;/EM&gt;...hum...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alright, so I have to go through with &lt;STRONG&gt;SelectLayerByLocation&lt;/STRONG&gt; and some additional processes, is that what you were trying say ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well then , as I wrote earlier, I tryied the following :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;set the paths for the raster catalog and the polygon feature class;&lt;/LI&gt;&lt;LI&gt;use the arcpy function &lt;STRONG&gt;MakeFeatureLayer_management&lt;/STRONG&gt; to set the polygon feature class as layer;&lt;/LI&gt;&lt;LI&gt;use the arcpy function &lt;STRONG&gt;MakeRasterCatalogLayer_management&lt;/STRONG&gt; to set the raster catalog as a layer;&lt;/LI&gt;&lt;LI&gt;use the arcpy function &lt;STRONG&gt;SelectLayerByLocation_management&lt;/STRONG&gt; on the results from step 2 and step 3, according to the following :&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;in_layer&lt;/EM&gt; -&amp;gt; raster catalog as layer;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;overlap_type&lt;/EM&gt; = "CONTAINS";&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;select_features&lt;/EM&gt; -&amp;gt; polygon feature class as layer;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;search_distance&lt;/EM&gt; -&amp;gt; null;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;selection_type&lt;/EM&gt; -&amp;gt; "NEW_SELECTION";&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;invert_spatial_relationship&lt;/EM&gt; = "NOT_INVERT"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss a step when doing this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I print the resulting selection in my python terminal, I receive the name of the raster catalog layer.&lt;/P&gt;&lt;P&gt;When I launch all of the commands in ArcMap Python window, I can see the polygon layer and the raster catalog layer appear at steps 2 and 3. But then, when I run step 4, the resulting selection is empty. There is nothing to even clear (I mean the button "clear selection").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think of this process ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849968#M660</guid>
      <dc:creator>FredCoud</dc:creator>
      <dc:date>2018-10-17T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849969#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide the code you are using?&amp;nbsp; When replying, expand the toolbar to the 'More' pulldown and select Syntax Highlighter and paste your code in a Python window...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849969#M661</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-10-17T15:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849970#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you try it manually using the tool.&lt;/P&gt;&lt;P&gt;A mosaic layer, I suspect isn't a raster layer, and if the select by... in arctoolbox has only specific things that it will select (ie feature and raster layers), then it wouldn't surprise me if it doesn't work.&lt;/P&gt;&lt;P&gt;I suspect it is the type of layer that is more important and not the fact that it is a layer at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 16:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849970#M662</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-17T16:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy command  for "Select by location" tool ?</title>
      <link>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849971#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;At the end I decided not to use the raster catalog, but the &lt;STRONG&gt;map index&lt;/STRONG&gt; provided with the images used to create the catalog.&lt;/P&gt;&lt;P&gt;I then used the arcpy command "&lt;STRONG&gt;Select Layer by Location&lt;/STRONG&gt;" with this map index and, hurray !, it works !!&lt;/P&gt;&lt;P&gt;Thanks for the answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 14:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/cartography-and-maps-questions/arcpy-command-for-quot-select-by-location-quot/m-p/849971#M663</guid>
      <dc:creator>FredCoud</dc:creator>
      <dc:date>2018-10-24T14:18:46Z</dc:date>
    </item>
  </channel>
</rss>

