<?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 Search radius format in Spatial Join tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350968#M27521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format for the search radius parameter in the Spatial Join in a python script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a numeric value (5), 5 feet, and 5-feet.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2017 13:22:58 GMT</pubDate>
    <dc:creator>MichaelMiller2</dc:creator>
    <dc:date>2017-06-06T13:22:58Z</dc:date>
    <item>
      <title>Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350968#M27521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format for the search radius parameter in the Spatial Join in a python script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a numeric value (5), 5 feet, and 5-feet.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 13:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350968#M27521</guid>
      <dc:creator>MichaelMiller2</dc:creator>
      <dc:date>2017-06-06T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350969#M27522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'5 Feet'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 13:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350969#M27522</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-06-06T13:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350970#M27523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could write the parameter as &lt;STRONG&gt;"5 Feet"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Numeric Value with Units enclosed in Double Quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 13:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350970#M27523</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-06-06T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350971#M27524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce and Jayanta for the reply. &amp;nbsp;But, it does not appear to want to work using any value for the search radius. I'm only able to get the spatial join to run is with no value in the search radius.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May have to open a support ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snippet of the code used&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #4d444d;"&gt;outPoints&lt;/SPAN&gt; &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;"PointsAlongRoutes"&lt;/SPAN&gt;&lt;SPAN style="color: #ff6666;"&gt;
&lt;/SPAN&gt;joinFeats &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;"MergedRoutes"
&lt;/SPAN&gt;outJoinFeat &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;"PointsJoinedToRoutes3"
&lt;/SPAN&gt;joinOp &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;"JOIN_ONE_TO_ONE"
&lt;/SPAN&gt;joinType &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;"KEEP_ALL"
&lt;/SPAN&gt;fieldMapping &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;""
&lt;/SPAN&gt;matchOption &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;"INTERSECT"
&lt;/SPAN&gt;searchRadius &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;"10 Feet"
&lt;/SPAN&gt;distanceField &lt;SPAN style="color: #ffffff; font-weight: bold;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #85cd00; font-weight: bold;"&gt;""
&lt;/SPAN&gt;arcpy.SpatialJoin_analysis&lt;SPAN style="font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-color: #46464d;"&gt;outPoints&lt;/SPAN&gt;, joinFeats, outJoinFeat, joinOp, joinType, fieldMapping, matchOption, searchRadius, distanceField&lt;SPAN style="font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350971#M27524</guid>
      <dc:creator>MichaelMiller2</dc:creator>
      <dc:date>2021-12-11T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350972#M27525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael, try not supplying the field mapping, I'm not sure an empty string will work.&amp;nbsp; You'll need to name parameters after switching from kwargs, like match_option="INTERSECT",search_radius='10 Feet')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350972#M27525</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-06-06T18:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350973#M27526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the heads up. I've changed the spatial join arguments as show below and it is still returning "ERROR 999998".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas before I call support?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialJoin_analysis&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;target_features&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:/tmp/KMZ_Work/RouteData3/KML_Data3.gdb/PointsAlongRoutes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 join_features&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:/tmp/KMZ_Work/RouteData3/KML_Data3.gdb/MergedRoutes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 out_feature_class&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:/tmp/KMZ_Work/RouteData3/KML_Data3.gdb/PointsJoinedToRoutesTest2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 join_operation&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"JOIN_ONE_TO_ONE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; join_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"KEEP_ALL"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;match_option&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"INTERSECT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 search_radius&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"5 Feet"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350973#M27526</guid>
      <dc:creator>MichaelMiller2</dc:creator>
      <dc:date>2021-12-11T16:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350974#M27527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm stumped, the function looks right, it is possible there is something in your data that is causing an issue, maybe linear referencing related if thats what you are working with.&amp;nbsp; Lets go with a support call.&amp;nbsp; Sorry it isn't jumping out at me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350974#M27527</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-06-06T20:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350975#M27528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, if I remove the search_radius parameter, it runs fine. But I need the search radius.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:57:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350975#M27528</guid>
      <dc:creator>MichaelMiller2</dc:creator>
      <dc:date>2017-06-06T20:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350976#M27529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way of checking is to use ModelBuilder. Add the Tool to the model and define all the desired parameters. Then, export the Model to Python Script.&lt;/P&gt;&lt;P&gt;Hope it helps!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350976#M27529</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-06-06T20:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search radius format in Spatial Join tool</title>
      <link>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350977#M27530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works when using the spatial join tool in toolbox. I exported the snippet from the result and have used those parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try it in a model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jayanta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 21:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/search-radius-format-in-spatial-join-tool/m-p/350977#M27530</guid>
      <dc:creator>MichaelMiller2</dc:creator>
      <dc:date>2017-06-06T21:00:50Z</dc:date>
    </item>
  </channel>
</rss>

