class MapElementGridSet extends AbstractGISGridSet<P> implements GISElementSet<P> {

	@Override
	@Pure
	public final P getNearest(Point2D<?, ?> position) {
		final Pair<P, Double> pair = getNearestData(position);
		if (pair != null) {
			return pair.getKey();
		}
		return null;
	}

	public  MapElementGridSet(int nRows, int nColumns, double boundsX, double boundsY, double boundsWidth, double boundsHeight);
	public  MapElementGridSet(int nRows, int nColumns, Rectangle2d bounds);

}