Rasterizing a vector layer