[gdal-dev] How to use gdal_rasterize to create a LZW compressed Tiff

Luke lukepinnerau at gmail.com
Wed Nov 27 00:58:14 PST 2013


See the documentation - http://www.gdal.org/gdal_rasterize.html
The syntax should be -co COMPRESS=LZW

Regards
Luke


gis.postgraduate wrote
> I want to use gdal_rasterize for generating Tiff from shp. Usually the
> result is big, so I try to compress it. Then I come to use the LZW
> compress option.
> I am using a command like this:
> gdal_rasterize.exe -burn 255 -burn 255 -burn 0 -burn 255 -ot Byte -tr
> 0.0332147 0.0332147 shp.shp shp0.tif --config COMPRESS LZW
> but it seems the "--config COMPRESS LZW" option doesn't function.(the
> result is exactly the same size as before.)





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-How-to-use-gdal-rasterize-to-create-a-LZW-compressed-Tiff-tp5091388p5091414.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list