This file is indexed.

/usr/lib/python2.7/dist-packages/geopandas/sindex.py is in python-geopandas 0.3.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from geopandas import base

if base.HAS_SINDEX:
    from rtree.index import Index as RTreeIndex


class SpatialIndex(RTreeIndex):
    """
    A simple wrapper around rtree's RTree Index
    """

    def __init__(self, *args):
        if not base.HAS_SINDEX:
            raise ImportError("SpatialIndex needs `rtree`")
        RTreeIndex.__init__(self, *args)

    @property
    def size(self):
        return len(self.leaves()[0][1])

    @property
    def is_empty(self):
        if len(self.leaves()) > 1:
            return False
        return self.size < 1