<?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: Near_Analysis tool help in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/near-analysis-tool-help/m-p/716420#M55544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, you cannot use single backslashes in folder paths, either preface them with raw notation or use double backslashes or single forward slashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ie "c:\temp" is wrong&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;correct versions are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;r"c:\temp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"c:\\temp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"c"/temp"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 23:17:16 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2011-06-29T23:17:16Z</dc:date>
    <item>
      <title>Near_Analysis tool help</title>
      <link>https://community.esri.com/t5/python-questions/near-analysis-tool-help/m-p/716418#M55542</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;I am writing a python script that does the Near_Analysis. The script is as follows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;workspaceName = "C:\...\ShapeFiles"
nearFeatures="shapefile1.shp"
arcpy.Near_analysis (inputData, nearFeatures)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to help &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Near/00080000001q000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Near/00080000001q000000/&lt;/A&gt;&lt;SPAN&gt; it says I can specify more than 1 feature class as near features. So I modify my code as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't work (the directory C:\...\ShapeFiles has multiple shape files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;workspaceName = "C:\...\ShapeFiles"
nearFeatures="shapefile1.shp,shapefile2.shp"
arcpy.Near_analysis (inputData, nearFeatures)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried nearFeatures="[shapefile1.shp,shapefile2.shp]" , nearFeatures="shapefile1.shp,shapefile2.shp" and many other combinations but it doesnot work&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/near-analysis-tool-help/m-p/716418#M55542</guid>
      <dc:creator>IgressT</dc:creator>
      <dc:date>2021-12-12T06:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Near_Analysis tool help</title>
      <link>https://community.esri.com/t5/python-questions/near-analysis-tool-help/m-p/716419#M55543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Intersect/00080000000p000000/"&gt;intersect tool &lt;/A&gt;&lt;SPAN&gt;takes multiple feature classes in the form of ["shapefile1.shp", "shapefile2.shp"] (quotes, brackets, and comma delimited). I'd try that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 18:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/near-analysis-tool-help/m-p/716419#M55543</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2011-06-29T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Near_Analysis tool help</title>
      <link>https://community.esri.com/t5/python-questions/near-analysis-tool-help/m-p/716420#M55544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, you cannot use single backslashes in folder paths, either preface them with raw notation or use double backslashes or single forward slashes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ie "c:\temp" is wrong&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;correct versions are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;r"c:\temp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"c:\\temp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"c"/temp"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 23:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/near-analysis-tool-help/m-p/716420#M55544</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-06-29T23:17:16Z</dc:date>
    </item>
  </channel>
</rss>

