adriangb: @martinfleis  I think the main things to check here are:
1. The text for the errors/warnings. 
2. Do we need to edit docs / installation instructions as well, to reflect that you can use either pygeos or rtree, and that pygeos is prefered?
adriangb: I added `--cov-append` to all CI runs so that the run with no optional dependencies (which runs some tests for error handling when there is no spatial index) also gets run.
adriangb: FYI @martinfleis , you might want to enable the option in Travis which cancels old runs when new commits are pushed, no point in wasting compute.
adriangb: > I added `--cov-append` to all CI runs so that the run with no optional dependencies (which runs some tests for error handling when there is no spatial index) also gets run.

This failed, of course you can't append coverage across CI runs. I guess we just won't include those parts in coverage for now.
adriangb: Ok, all tests are passing now. Unless anyone has any good ideas for the coverage issue, I think this should be good to go.
jorisvandenbossche: @adriangb Thanks for the nice clean-up!
adriangb: @brendan-ward I think I addressed all of your comments, and the tests are passing. Let me know if there's anything else!
diff --git a/geopandas/base.py b/geopandas/base.py
index 6503ca70..3e971b17 100644
--- a/geopandas/base.py
+++ b/geopandas/base.py
@@ -100,6 +100,17 @@ class GeoPandasBase(object):
             _sindex = sindex_cls(self.geometry)
             if not _sindex.is_empty:
                 self._sindex = _sindex
+            else:
+                warn(
+                    "Generated spatial index is empty and returned `None`. "
+                    "Future versions of GeoPandas will return zero-length spatial "
+                    "index instead of `None`. Use `len(gdf.sindex) > 0` "
+                    "or `if gdf.sindex` instead of `if gd.sindex is not None` "
+                    "to check for empty spatial indexes.",
+                    FutureWarning,
+                    stacklevel=3,
+                )
+                self._sindex = None
         self._sindex_generated = True
 
     def _invalidate_sindex(self):
diff --git a/geopandas/sindex.py b/geopandas/sindex.py
index 22b6181f..90e8ac4c 100644
--- a/geopandas/sindex.py
+++ b/geopandas/sindex.py
@@ -1,4 +1,3 @@
-from warnings import warn
 from collections import namedtuple
 
 from shapely.geometry.base import BaseGeometry
@@ -22,21 +21,27 @@ VALID_QUERY_PREDICATES = {
 def has_sindex():
     """Dynamically checks for ability to generate spatial index.
     """
-    return get_sindex_class() is not None
+    try:
+        get_sindex_class()
+        return True
+    except ImportError:
+        return False
 
 
 def get_sindex_class():
     """Dynamically chooses a spatial indexing backend.
 
     Required to comply with _compat.USE_PYGEOS.
-    The selection order goes PyGEOS > RTree > None.
+    The selection order goes PyGEOS > RTree > Error.
     """
     if compat.USE_PYGEOS:
         return PyGEOSSTRTreeIndex
     if compat.HAS_RTREE:
         return RTreeIndex
-    warn("Spatial indexes require either `rtree` or `pygeos`.")
-    return None
+    raise ImportError(
+        "Spatial indexes require either `rtree` or `pygeos`. "
+        "See installation instructions at https://geopandas.org/install.html"
+    )
 
 
 if compat.HAS_RTREE:
@@ -246,6 +251,9 @@ if compat.HAS_RTREE:
         def is_empty(self):
             return self.size == 0
 
+        def __len__(self):
+            return self.size
+
 
 if compat.HAS_PYGEOS:
 
diff --git a/geopandas/tools/sjoin.py b/geopandas/tools/sjoin.py
index 51775c05..7f67c19a 100644
--- a/geopandas/tools/sjoin.py
+++ b/geopandas/tools/sjoin.py
@@ -7,7 +7,6 @@ from shapely import prepared
 
 from geopandas import GeoDataFrame
 from geopandas import _compat as compat
-from geopandas._compat import HAS_RTREE
 
 
 def sjoin(
@@ -76,13 +75,6 @@ def sjoin(
             " joined".format(index_left, index_right)
         )
 
-    # Check if rtree is installed...
-    if not HAS_RTREE:
-        raise ImportError(
-            "Rtree must be installed to use sjoin\n\n"
-            "See installation instructions at https://geopandas.org/install.html"
-        )
-
     # Attempt to re-use spatial indexes, otherwise generate the spatial index
     # for the longer dataframe. If we are joining to an empty dataframe,
     # don't bother generating the index.

MAINT: unify spatial index error handling
Currently, there is no unified approach to error handling for empty spatial indexes or lack of a spatail index backend:
- sjoin does it's own check for rtree, this means you need rtree even if you have pygeos!
- overlay and clip do not do any checks, they would fail with something like `None does not have any attribute query_bulk`, which is not very helpful.

Further, when you create a spatial index, if:
- The spatial index is empty, `GeoDataFrame.sindex` gets set to None
- There is not spatial index backend, `GeoDataFrame.sindex` gets set to None and a _warning_ is raised.

I don't particularly like that handling. There is no way to tell what happened, aside from a warning.

I would like to propose the following:
- No modules outside of `sindex` shall check for a spatial index backend. They should just blindly try to access the `sindex` property.
- The `sindex` backends should be instantiated even with no geometries, and should have a `__len__` property that reports 0 when empty (this preserves the `if gdf.sindex:` syntax used in some modules).
- In the case of no spatial index backend, a clear error should be raised by `sindex.*

\* Currently, the error is raised only when a property of the spatial index is accessed (`sindex.intersection`). There are two options with this:
1. Preserve the current behavior, but make the error more useful. This would require setting `GeoDataFrame.sindex` to some non-None value, perhaps a dummy class that raises a user friendly error if any of its methods (`query`, `query_bulk`, etc.) are accessed and always reports a `len` of 0. The big con of this approach is complexity. We'd have to make a dummy class, etc.
2. Raise an error when `GeoDataFrame.sindex` is accessed. This is the lower complexity approach, we just replace what is currently a warning with an error. It would however require either a `try/except` block or an import of `geopandas.sindex.has_sindex` by other modules to handle this error if they want to operate without a spatial index. Currently, all modules that use a spatial index _cannot_ operate without a spatial index, so they would actually not need to do anything.
diff --git a/geopandas/tests/test_sindex.py b/geopandas/tests/test_sindex.py
index 91c3dc3e..ecc6f1e0 100644
--- a/geopandas/tests/test_sindex.py
+++ b/geopandas/tests/test_sindex.py
@@ -18,20 +18,36 @@ import pytest
 import numpy as np
 
 
-@pytest.mark.skipif(sindex.has_sindex(), reason="Spatial index present, skipping")
 class TestNoSindex:
-    def test_no_sindex(self):
-        """Checks that a warning is given when no spatial index is present."""
-        with pytest.warns(UserWarning):
+    @pytest.mark.skipif(sindex.has_sindex(), reason="Spatial index present, skipping")
+    def test_no_sindex_installed(self):
+        """Checks that an error is raised when no spatial index is present."""
+        with pytest.raises(ImportError):
             sindex.get_sindex_class()
 
+    @pytest.mark.skipif(
+        compat.HAS_RTREE or not compat.HAS_PYGEOS,
+        reason="rtree cannot be disabled via flags",
+    )
+    def test_no_sindex_active(self):
+        """Checks that an error is given when rtree is not installed
+        and compat.USE_PYGEOS is False.
+        """
+        state = compat.USE_PYGEOS  # try to save state
+        compat.set_use_pygeos(False)
+        with pytest.raises(ImportError):
+            sindex.get_sindex_class()
+        compat.set_use_pygeos(state)  # try to restore state
+
 
 @pytest.mark.skipif(sys.platform.startswith("win"), reason="fails on AppVeyor")
 @pytest.mark.skipif(not sindex.has_sindex(), reason="Spatial index absent, skipping")
 class TestSeriesSindex:
     def test_empty_geoseries(self):
-
-        assert GeoSeries().sindex is None
+        """Tests creating a spatial index from an empty GeoSeries."""
+        with pytest.warns(FutureWarning, match="Generated spatial index is empty"):
+            # TODO: add checking len(GeoSeries().sindex) == 0 once deprecated
+            assert not GeoSeries(dtype=object).sindex
 
     def test_point(self):
         s = GeoSeries([Point(0, 0)])
@@ -42,9 +58,13 @@ class TestSeriesSindex:
         assert len(list(hits)) == 0
 
     def test_empty_point(self):
+        """Tests that a single empty Point results in an empty tree."""
         s = GeoSeries([Point()])
 
-        assert s.sindex is None
+        with pytest.warns(FutureWarning, match="Generated spatial index is empty"):
+            # TODO: add checking len(s) == 0 once deprecated
+            assert not s.sindex
+
         assert s._sindex_generated is True
 
     def test_polygons(self):
@@ -498,11 +518,15 @@ class TestPygeosInterface:
         """Tests the `size` property."""
         assert self.df.sindex.size == self.expected_size
 
+    def test_len(self):
+        """Tests the `__len__` method of spatial indexes."""
+        assert len(self.df.sindex) == self.expected_size
+
     def test_is_empty(self):
         """Tests the `is_empty` property."""
         # create empty tree
         cls_ = sindex.get_sindex_class()
-        empty = geopandas.GeoSeries([])
+        empty = geopandas.GeoSeries(dtype=object)
         tree = cls_(empty)
         assert tree.is_empty
         # create a non-empty tree
diff --git a/geopandas/tools/tests/test_sjoin.py b/geopandas/tools/tests/test_sjoin.py
index 32d2da60..5c0f9b0a 100644
--- a/geopandas/tools/tests/test_sjoin.py
+++ b/geopandas/tools/tests/test_sjoin.py
@@ -7,12 +7,16 @@ from shapely.geometry import Point, Polygon, GeometryCollection
 
 import geopandas
 from geopandas import GeoDataFrame, GeoSeries, read_file, sindex, sjoin
-from geopandas._compat import HAS_RTREE
 
 from pandas.testing import assert_frame_equal
 import pytest
 
 
+pytestmark = pytest.mark.skipif(
+    not sindex.has_sindex(), reason="sjoin requires spatial index"
+)
+
+
 @pytest.fixture()
 def dfs(request):
     polys1 = GeoSeries(
@@ -86,15 +90,6 @@ def dfs(request):
     return [request.param, df1, df2, expected]
 
 
-@pytest.mark.parametrize("dfs", ["default-index"], indirect=True)
-def test_raises_error_if_rtree_not_install(dfs):
-    _, df1, df2, _ = dfs
-    if not HAS_RTREE:
-        with pytest.raises(ImportError):
-            geopandas.sjoin(df1, df2)
-
-
-@pytest.mark.skipif(not sindex.has_sindex(), reason="Spatial index absent, skipping")
 class TestSpatialJoin:
     @pytest.mark.parametrize("dfs", ["default-index", "string-index"], indirect=True)
     def test_crs_mismatch(self, dfs):
@@ -306,7 +301,6 @@ class TestSpatialJoin:
         assert_frame_equal(res, exp, check_index_type=False)
 
 
-@pytest.mark.skipif(not sindex.has_sindex(), reason="Spatial index absent, skipping")
 class TestSpatialJoinNYBB:
     def setup_method(self):
         nybb_filename = geopandas.datasets.get_path("nybb")
@@ -474,7 +468,6 @@ class TestSpatialJoinNYBB:
         assert df2.shape == (21, 8)
 
 
-@pytest.mark.skipif(not sindex.has_sindex(), reason="Spatial index absent, skipping")
 class TestSpatialJoinNaturalEarth:
     def setup_method(self):
         world_path = geopandas.datasets.get_path("naturalearth_lowres")

pip install -e .
parse_log_pytest
requirements.txt
pytest descartes matplotlib rtree
apt-get update apt-get install -y gcc
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==24.2.0
certifi @ file:///croot/certifi_1671487769961/work/certifi
click==8.1.8
click-plugins==1.1.1
cligj==0.7.2
cycler==0.11.0
descartes==1.1.0
exceptiongroup==1.2.2
fiona==1.9.6
fonttools==4.38.0
-e git+https://github.com/geopandas/geopandas.git@985c6e70b7630f483ae919ba17bf67842e841efa#egg=geopandas
importlib-metadata==6.7.0
iniconfig==2.0.0
kiwisolver==1.4.5
matplotlib==3.5.3
numpy==1.21.6
packaging==24.0
pandas==1.3.5
Pillow==9.5.0
pluggy==1.2.0
pyparsing==3.1.4
pyproj==3.2.1
pytest==7.4.4
python-dateutil==2.9.0.post0
pytz==2025.2
Rtree==1.0.1
shapely==2.0.7
six==1.17.0
tomli==2.0.1
typing_extensions==4.7.1
zipp==3.15.0

name: geopandas
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==24.2.0
      - click==8.1.8
      - click-plugins==1.1.1
      - cligj==0.7.2
      - cycler==0.11.0
      - descartes==1.1.0
      - exceptiongroup==1.2.2
      - fiona==1.9.6
      - fonttools==4.38.0
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - kiwisolver==1.4.5
      - matplotlib==3.5.3
      - numpy==1.21.6
      - packaging==24.0
      - pandas==1.3.5
      - pillow==9.5.0
      - pluggy==1.2.0
      - pyparsing==3.1.4
      - pyproj==3.2.1
      - pytest==7.4.4
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - rtree==1.0.1
      - shapely==2.0.7
      - six==1.17.0
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/geopandas

geopandas/tests/test_sindex.py::TestSeriesSindex::test_empty_geoseries geopandas/tests/test_sindex.py::TestSeriesSindex::test_empty_point
geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_empty_geometries
geopandas/tests/test_sindex.py::TestSeriesSindex::test_point geopandas/tests/test_sindex.py::TestSeriesSindex::test_polygons geopandas/tests/test_sindex.py::TestSeriesSindex::test_polygons_append geopandas/tests/test_sindex.py::TestSeriesSindex::test_lazy_build geopandas/tests/test_sindex.py::TestFrameSindex::test_sindex geopandas/tests/test_sindex.py::TestFrameSindex::test_lazy_build geopandas/tests/test_sindex.py::TestFrameSindex::test_sindex_rebuild_on_set_geometry geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_bounds_tuple[test_geom0-expected0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_bounds_tuple[test_geom1-expected1] geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_bounds_tuple[test_geom2-expected2] geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_bounds_tuple[test_geom3-expected3] geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_invalid_bounds_tuple[test_geom0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_invalid_bounds_tuple[-0.5] geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_invalid_bounds_tuple[None] geopandas/tests/test_sindex.py::TestPygeosInterface::test_intersection_invalid_bounds_tuple[test_geom3] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[None-test_geom0-expected0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[None-test_geom1-expected1] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[None-test_geom2-expected2] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[None-test_geom3-expected3] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[intersects-test_geom4-expected4] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[intersects-test_geom5-expected5] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[intersects-test_geom6-expected6] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[intersects-test_geom7-expected7] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[within-test_geom8-expected8] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[within-test_geom9-expected9] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[within-test_geom10-expected10] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[within-test_geom11-expected11] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[contains-test_geom12-expected12] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[contains-test_geom13-expected13] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[contains-test_geom14-expected14] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[contains-test_geom15-expected15] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[contains-test_geom16-expected16] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[touches-test_geom17-expected17] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query[touches-test_geom18-expected18] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_invalid_geometry geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_empty_geometry[None-expected_value0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_empty_geometry[test_geom1-expected_value1] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_empty_geometry[test_geom2-expected_value2] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_empty_geometry[test_geom3-expected_value3] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_empty_geometry[test_geom4-expected_value4] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_invalid_predicate geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_sorting[True-expected0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[None-test_geom0-expected0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[None-test_geom1-expected1] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[None-test_geom2-expected2] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[intersects-test_geom3-expected3] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[intersects-test_geom4-expected4] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[intersects-test_geom5-expected5] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[intersects-test_geom6-expected6] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[intersects-test_geom7-expected7] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[within-test_geom8-expected8] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[within-test_geom9-expected9] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[within-test_geom10-expected10] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[contains-test_geom11-expected11] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[contains-test_geom12-expected12] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[contains-test_geom13-expected13] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[contains-test_geom14-expected14] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk[contains-test_geom15-expected15] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_empty_geometry[test_geoms0-expected_value0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_empty_geometry[test_geoms1-expected_value1] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_empty_geometry[test_geoms2-expected_value2] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_empty_geometry[test_geoms3-expected_value3] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_empty_input_array geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_invalid_input_geometry geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_invalid_predicate geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_input_type[None-test_geom0-expected0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_input_type[intersects-test_geom1-expected1] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_input_type[contains-test_geom2-expected2] geopandas/tests/test_sindex.py::TestPygeosInterface::test_query_bulk_sorting[True-expected0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_empty_tree_geometries geopandas/tests/test_sindex.py::TestPygeosInterface::test_size geopandas/tests/test_sindex.py::TestPygeosInterface::test_len geopandas/tests/test_sindex.py::TestPygeosInterface::test_is_empty geopandas/tests/test_sindex.py::TestPygeosInterface::test_integration_natural_earth[None-expected_shape0] geopandas/tests/test_sindex.py::TestPygeosInterface::test_integration_natural_earth[intersects-expected_shape1] geopandas/tests/test_sindex.py::TestPygeosInterface::test_integration_natural_earth[within-expected_shape2] geopandas/tests/test_sindex.py::TestPygeosInterface::test_integration_natural_earth[contains-expected_shape3] geopandas/tests/test_sindex.py::TestPygeosInterface::test_integration_natural_earth[overlaps-expected_shape4] geopandas/tests/test_sindex.py::TestPygeosInterface::test_integration_natural_earth[crosses-expected_shape5] geopandas/tests/test_sindex.py::TestPygeosInterface::test_integration_natural_earth[touches-expected_shape6] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_crs_mismatch[default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_crs_mismatch[string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[intersects-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[intersects-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[intersects-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[intersects-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[intersects-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[contains-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[contains-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[contains-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[contains-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[contains-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[within-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[within-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[within-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[within-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_inner[within-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[intersects-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[intersects-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[intersects-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[intersects-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[intersects-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[contains-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[contains-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[contains-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[contains-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[contains-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[within-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[within-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[within-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[within-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_left[within-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_empty_join geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_join_with_empty[empty0-intersects] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_join_with_empty[empty0-contains] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_join_with_empty[empty0-within] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_join_with_empty[empty1-intersects] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_join_with_empty[empty1-contains] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_join_with_empty[empty1-within] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_sjoin_invalid_args[default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_sjoin_invalid_args[string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[intersects-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[intersects-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[intersects-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[intersects-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[intersects-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[contains-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[contains-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[contains-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[contains-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[contains-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[within-default-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[within-string-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[within-named-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[within-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoin::test_right[within-named-multi-index] geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_geometry_name geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_left geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_right geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_inner geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_op geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_bad_op geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_duplicate_column_name geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_named_index[left] geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_named_index[right] geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_named_index[inner] geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNYBB::test_sjoin_values geopandas/tools/tests/test_sjoin.py::TestSpatialJoinNaturalEarth::test_sjoin_inner
geopandas/sindex.py geopandas/tools/sjoin.py geopandas/base.py
geopandas/sindex.py geopandas/tools/sjoin.py geopandas/base.py