fix gdal rasterize when using the -ts parameter
Merge pull request #1737 from gioman/fix_gdal_rasterize

fix gdal rasterize when using the -ts parameter