2d spatial database