<?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 in stand alone script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357938#M69354</link>
    <description>&lt;P&gt;Move your data to a local folder on your computer.&amp;nbsp; One Drive isn't supported&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 14:05:51 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-12-07T14:05:51Z</dc:date>
    <item>
      <title>Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357884#M69351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create stand alone script for do the select by location using two features.&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;Using the documentation the error below show:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR 000368: Invalid input data.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Failed to execute (SelectLayerByLocation).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank´s&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 11:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357884#M69351</guid>
      <dc:creator>SoratoSouza_e_Silva</dc:creator>
      <dc:date>2023-12-07T11:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357901#M69352</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;which code sample are you following and what is your script code?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 12:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357901#M69352</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-12-07T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357928#M69353</link>
      <description>&lt;P&gt;Follow below my code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;import arcpy&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;entrada = r"D:\\Profile\\OneDrive - Imagem Geosistemas e Comercio LTDA\\Documentos\\ArcGIS\\Projects\\MyProject10\\MyProject10.gdb\\teste"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;recorte = r"D:\\Profile\\OneDrive - Imagem Geosistemas e Comercio LTDA\\Documentos\\ArcGIS\\Projects\\MyProject10\\MyProject10.gdb\\teste1"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;saida = r"D:\\Profile\\OneDrive - Imagem Geosistemas e Comercio LTDA\\Documentos\\ArcGIS\\Projects\\MyProject10\\MyProject10.gdb\\teste_saida"&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;fst = arcpy.SelectLayerByLocation_management(entrada,'intersect', recorte)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;arcpy.conversion.ExportFeatures(fst,saida) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;No work unfortunately.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank´s&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 13:46:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357928#M69353</guid>
      <dc:creator>SoratoSouza_e_Silva</dc:creator>
      <dc:date>2023-12-07T13:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357938#M69354</link>
      <description>&lt;P&gt;Move your data to a local folder on your computer.&amp;nbsp; One Drive isn't supported&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 14:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357938#M69354</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-12-07T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357941#M69355</link>
      <description>&lt;P&gt;Yes, I understand! I was changed to local folder already, but no work. The same error shows.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 14:17:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357941#M69355</guid>
      <dc:creator>SoratoSouza_e_Silva</dc:creator>
      <dc:date>2023-12-07T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357943#M69356</link>
      <description>&lt;P&gt;Select by location operates on feature layers (i.e. objects in an ArcGIS Pro session table of contents). Not on feature classes, which is what you're currently feeding into your script.&lt;BR /&gt;&lt;BR /&gt;If you add a "Make Feature Layer" operation uysing your inputs, then use the outputs of that for your select by location then you should get there.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 14:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1357943#M69356</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2023-12-07T14:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1359586#M69387</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Solved my problem. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 10:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1359586#M69387</guid>
      <dc:creator>SoratoSouza_e_Silva</dc:creator>
      <dc:date>2023-12-12T10:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location in stand alone script</title>
      <link>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1359604#M69389</link>
      <description>&lt;P&gt;Awesome. Can you mark it as an accepted solution then pls &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 12:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/select-by-location-in-stand-alone-script/m-p/1359604#M69389</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2023-12-12T12:05:39Z</dc:date>
    </item>
  </channel>
</rss>

