[gdal-dev] Python RasterizeLayer and gdal_rasterize
Mike Taves
mwtoews at gmail.com
Wed Jul 24 13:40:44 PDT 2019
On Thu, 25 Jul 2019 at 01:19, Ivan Lucena <ivan.lucena at outlook.com> wrote:
> mem_ds.SetGeoTransform((xmin, xResolut, 0, ymax, 0, yResolut,))
Check your value for yResolut, as it should be negative. In my
experience, a raster full of zeros is when the geometry is outside the
raster window, so be sure to manually check the raster and vector
geometries in (e.g.) QGIS. Lastly, to properly close the file, you
only need to dereference the object:
mem_ds = None
More information about the gdal-dev
mailing list