Added class XY_Grid_Factory. We need a raster, so that near points snap to each other.