[gdal-dev] How can I generate an empty geotiff based on the
extent of the shape file?
Dane Springmeyer
blake at hailmail.net
Thu Jul 31 15:11:28 EDT 2008
Hi John,
If you can't use use gdal_translate to flatten an existing raster you
can try creating one from scratch using one of the supported language
bindings.
The python bindings work particularly well for this since you can hook
into numpy.
See: http://trac.osgeo.org/gdal/wiki/FAQRaster#HowcanIcreateablankrasterbasedonavectorfilesextentsforusewithgdal_rasterize
Cheers,
Dane
On Jul 31, 2008, at 10:39 AM, John Mitchell wrote:
> The output for gdal_rasterize has to be an existing geotiff. If I
> don't have an existing geotiff for the associated area how can I
> generate an empty geotiff based on the extent of the shape file that
> I will be using as the source for gdal_rasterize?
>
> Thanks,
>
> --
> John J. Mitchell
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list