[gdal-dev] Write 8-bit image...

Tripp Lowe tripplowe at gmail.com
Tue Jan 13 15:24:22 EST 2009


Hey Folks,

I'm trying to write a perl script to write an 8-bit image.  I've been able
to modify the "Creating a raster dataset" example using Geo::GDAL (
http://map.hut.fi/doc/Geo-GDAL/html/create_raster.html ) to output float32
and U16 images, but I can't figure out how to output an 8-bit image.

I see in the docs that
*"GDAL<http://map.hut.fi/doc/Geo-GDAL/html/class_geo_1_1_g_d_a_l.html>raster
data types are Byte UInt16 Int16 UInt32 Int32 Float32 Float64 CInt16
CInt32 CFloat32 CFloat64"*.

How do I specify an 8-bit data type?

Thanks.
-- 
Tripp Lowe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090113/f988d803/attachment.html


More information about the gdal-dev mailing list