[Mapserver-users] output to 1band 16 bit geotiff?
Frank Warmerdam
warmerdam at pobox.com
Mon Jun 23 06:57:28 PDT 2003
Vincent Schut wrote:
> Frank & others,
>
> sorry for my apparently confusing story.
> I don't need indexed 16bit images.
> I simply want to specify the value the pixel gets in mapserver&gdal 16bit
> geotiff output. In mapserver, afaik the only way to specify the output value
> of a pixel is 'color r g b'. However, you can specify 16bit output using gdal
> in the outputformat tag. But if I specify 16bit output, I always get a
> 0-filled geotiff... I'd like to be able to specify the 'color' (but with
> values > 255) of my 16bit output file. I mean, why have 16-bit ouput if you
> cannot specify output values > 255?
Vincent,
This is an ommission in the code. I can modify the code in msImageCreate()
(maputil.c) to initial INT16 and FLOAT32 rasters from the red component of the
background color if you would like. As it happens, it looks like the colorObj
values are all 'int' which gives us some flexibility.
However, I think this does not solve your basic problem. The special INT16
and FLOAT32 modes are not intended to work with vector drawing at all. They
are just for special applications where MapServer is used for delivering
raster file data of DEMs, not for general mapserving.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list