<?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: Select By Location has output when done manually but not when done by script? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680355#M101455</link>
    <description>&lt;P&gt;It's not my personal data, but yeah I think you're right. The two tables, as far as I know, are supposed to participate in a topology (This is PLSS data). The blue rectangle very slightly overhangs the border and I think that's what's causing the problem after all.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1769548861816.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/147432i0A7E05C393B0AE42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1769548861816.png" alt="AlfredBaldenweck_0-1769548861816.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I wonder if the search distance acts as like, a negative buffer or something and feeds in a smaller shape, and that's why it works? That would kind of make sense to me, and on a scale of 20 acres, 1 meter all around is an acceptable loss.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2026 21:23:11 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2026-01-27T21:23:11Z</dc:date>
    <item>
      <title>Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680311#M101445</link>
      <description>&lt;P&gt;I'm trying to script a workflow that involves selecting a polygon and then selecting by location a different polygon.&lt;/P&gt;&lt;P&gt;When I do this manually in the map, it works great. If I do it in the script (same record), there isn't any output.&lt;/P&gt;&lt;P&gt;What's going on here, and how do I get around it?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680311#M101445</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2026-01-27T18:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680313#M101446</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-location.htm" target="_blank"&gt;Select Layer By Location (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;does it follow the code examples in the help topic?&amp;nbsp; The output should be a layer if a selection was matched&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 19:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680313#M101446</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2026-01-27T19:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680321#M101447</link>
      <description>&lt;P&gt;I just ran into a very similar (possibly exact opposite?) issue about 10 minutes ago, and it was because I was feeding in a &lt;STRONG&gt;Feature Class&lt;/STRONG&gt;, instead of a &lt;STRONG&gt;Feature Layer&lt;/STRONG&gt;.&amp;nbsp; Feature Classes can't hold selections, so it was ignoring my selection and trying to work from the entire Feature Class.&lt;/P&gt;&lt;P&gt;Is that maybe what's going on in your case?&amp;nbsp; Instead of selecting nothing, maybe it's selecting&amp;nbsp;&lt;EM&gt;everything&lt;/EM&gt;, and the results are just skewing in a direction that looks the same?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 19:33:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680321#M101447</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2026-01-27T19:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680332#M101450</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="contains.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/147424i8EECD3517DC1D329/image-size/medium?v=v2&amp;amp;px=400" role="button" title="contains.gif" alt="contains.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Well, to update:&lt;/P&gt;&lt;P&gt;I went through again. Somehow, Pro thinks that this orange hatched square does not contain the blue rectangle (even though it very much does???).&lt;/P&gt;&lt;P&gt;However, setting the search distance to -1 meters seems to work just fine with Contains (This interaction isn't documented, but if it works...)&lt;/P&gt;&lt;P&gt;I've had this issue on Select By Location and Add/Spatial Join. I'm gonna give this another shot in the script with the search distance and contains and see what's up.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 20:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680332#M101450</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2026-01-27T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680334#M101451</link>
      <description>&lt;P&gt;It is useful to see the applicable selectors for polygon selecting polygon in the visual guide&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-by-location-graphical-examples.htm" target="_blank"&gt;Select By Location graphic examples—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;under&amp;nbsp;Select polygon using polygon&lt;/P&gt;&lt;P&gt;The other examples are useful as well&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 20:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680334#M101451</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2026-01-27T20:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680353#M101454</link>
      <description>&lt;P&gt;For the two points where the blue vertices hit the edge of the orange square, are there matching vertices on the orange square? I've had issues with spatial selections where minute imprecisions along edges cause the inner feature to bleed out of the outer feature, even if it seems mathematically sound. If there are matching vertices then yeah this is a bug.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 21:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680353#M101454</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2026-01-27T21:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680355#M101455</link>
      <description>&lt;P&gt;It's not my personal data, but yeah I think you're right. The two tables, as far as I know, are supposed to participate in a topology (This is PLSS data). The blue rectangle very slightly overhangs the border and I think that's what's causing the problem after all.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1769548861816.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/147432i0A7E05C393B0AE42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1769548861816.png" alt="AlfredBaldenweck_0-1769548861816.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I wonder if the search distance acts as like, a negative buffer or something and feeds in a smaller shape, and that's why it works? That would kind of make sense to me, and on a scale of 20 acres, 1 meter all around is an acceptable loss.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 21:23:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680355#M101455</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2026-01-27T21:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Location has output when done manually but not when done by script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680469#M101463</link>
      <description>&lt;P&gt;You need to first create a layer from the first selected polygon and then use this layer to select the second polygon:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#Create a layer from selected features.
select_layer = arcpy.management.SelectLayerByLocation(infeat1,
                                                    {overlap_type},
                                                    selfeat1)

#Use layer created from first selection for second selection.
arcpy.management.SelectLayerByLocation(infeat2, 
                                       {overlap_type}, 
                                       select_layer)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 15:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-location-has-output-when-done-manually/m-p/1680469#M101463</guid>
      <dc:creator>JonathanDelura</dc:creator>
      <dc:date>2026-01-28T15:56:32Z</dc:date>
    </item>
  </channel>
</rss>

