def intersection(self, coordinates, objects=False):
if objects:<EOL><INDENT>return self._intersection_obj(coordinates, objects)<EOL><DEDENT>p_mins, p_maxs = self.get_coordinate_pointers(coordinates)<EOL>p_num_results = ctypes.c_uint64(<NUM_LIT:0>)<EOL>it = ctypes.pointer(ctypes.c_int64())<EOL>core.rt.Index_Intersects_id(self.handle,<EOL>p_mins,<EOL>p_maxs,<EOL>self.properties.dimension,<EOL>ctypes.byref(it),<EOL>ctypes.byref(p_num_results))<EOL>return self._get_ids(it, p_num_results.value)<EOL>
Return ids or objects in the index that intersect the given
        coordinates.

        :param coordinates: sequence or array
            This may be an object that satisfies the numpy array
            protocol, providing the index's dimension * 2 coordinate
            pairs representing the `mink` and `maxk` coordinates in
            each dimension defining the bounds of the query window.

        :param objects: True or False or 'raw'
            If True, the intersection method will return index objects that
            were pickled when they were stored with each index entry, as well
            as the id and bounds of the index entries. If 'raw', the objects
            will be returned without the :class:`rtree.index.Item` wrapper.

        The following example queries the index for any objects any objects
        that were stored in the index intersect the bounds given in the
        coordinates::

            >>> from rtree import index
            >>> idx = index.Index()
            >>> idx.insert(4321,
            ...            (34.3776829412, 26.7375853734, 49.3776829412,
            ...             41.7375853734),
            ...            obj=42)

            >>> hits = list(idx.intersection((0, 0, 60, 60), objects=True))
            >>> [(item.object, item.bbox) for item in hits if item.id == 4321]
            ... # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
            [(42, [34.37768294..., 26.73758537..., 49.37768294...,
                   41.73758537...])]

        If the :class:`rtree.index.Item` wrapper is not used, it is faster to
        request the 'raw' objects::

            >>> list(idx.intersection((0, 0, 60, 60), objects="raw"))
            [42]