Trying to deal with spatialindex. Again.