<?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 Using multiple predicate parameters on sjoin in GeoPandas in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-multiple-predicate-parameters-on-sjoin-in/m-p/1144252#M63766</link>
    <description>&lt;P&gt;Looking for a way to run GeoDataFrame.sjoin() with more than one predicate. For Example, on QGIS' "Join by location" tool, there is a check box of predicates to mark as needed.&lt;/P&gt;&lt;P&gt;When trying to run predicates as a list :&lt;/P&gt;&lt;PRE&gt;my_sjoin = gdf_1.sjoin(gdf_2, predicate=['within', 'intersects'])&lt;/PRE&gt;&lt;P&gt;The function wont accept a&lt;A href="https://www.olansinl.com/" target="_self"&gt;&amp;nbsp;&lt;/A&gt;list:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"TypeError: unhashable type: 'list' "&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 17 Feb 2022 13:06:11 GMT</pubDate>
    <dc:creator>BenCutting</dc:creator>
    <dc:date>2022-02-17T13:06:11Z</dc:date>
    <item>
      <title>Using multiple predicate parameters on sjoin in GeoPandas</title>
      <link>https://community.esri.com/t5/python-questions/using-multiple-predicate-parameters-on-sjoin-in/m-p/1144252#M63766</link>
      <description>&lt;P&gt;Looking for a way to run GeoDataFrame.sjoin() with more than one predicate. For Example, on QGIS' "Join by location" tool, there is a check box of predicates to mark as needed.&lt;/P&gt;&lt;P&gt;When trying to run predicates as a list :&lt;/P&gt;&lt;PRE&gt;my_sjoin = gdf_1.sjoin(gdf_2, predicate=['within', 'intersects'])&lt;/PRE&gt;&lt;P&gt;The function wont accept a&lt;A href="https://www.olansinl.com/" target="_self"&gt;&amp;nbsp;&lt;/A&gt;list:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"TypeError: unhashable type: 'list' "&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 13:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-multiple-predicate-parameters-on-sjoin-in/m-p/1144252#M63766</guid>
      <dc:creator>BenCutting</dc:creator>
      <dc:date>2022-02-17T13:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple predicate parameters on sjoin in GeoPandas</title>
      <link>https://community.esri.com/t5/python-questions/using-multiple-predicate-parameters-on-sjoin-in/m-p/1144258#M63767</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Intersects&lt;/STRONG&gt; is a pretty broad predicate, and would include all features returned by &lt;STRONG&gt;within&lt;/STRONG&gt;. You shouldn't really need both.&lt;/P&gt;&lt;P&gt;GeoPandas uses Shapely for spatial joins, and you can read more about the binary predicates here: &lt;A href="https://shapely.readthedocs.io/en/latest/manual.html#binary-predicates" target="_blank"&gt;https://shapely.readthedocs.io/en/latest/manual.html#binary-predicates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 19:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-multiple-predicate-parameters-on-sjoin-in/m-p/1144258#M63767</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-02-15T19:55:27Z</dc:date>
    </item>
  </channel>
</rss>

