The number of index entries in a grid index for indexing geometric shapes
is reduced by establishing a pool storage area for geometric shapes,
selecting a threshold number of grid cells which a geometric shape may
overlap, storing the shape in the grid index if a geometric shape
overlaps a number of grid cells not exceeding the threshold number, and
storing the shape in the pool storage area if the geometric shape
overlaps a number of grid cells which exceeds the threshold number.