a wrapper around libspatialindex