Generate a distance raster from an input vector