I'm not sure if this will work but give it a try. You might have to wait for Thomas to response as he would know for sure.

OUTPUTFORMAT
  NAME "GTiff"
  DRIVER GDAL/GTiff
  MIMETYPE "image/tiff"
  IMAGEMODE RGB
  EXTENSION "tif"
  FORMATOPTION "INTERLACE=false"
  FORMATOPTION "QUANTIZE_NEW=ON"
  FORMATOPTION "QUANTIZE_FORCE=ON"
  FORMATOPTION "QUANTIZE_DITHER=OFF"
  FORMATOPTION "QUANTIZE_COLORS=256"
END

Also look at http://mapserver.org/mapfile/outputformat.html#outputformat
there are FORMATOPTIONs specific to GDAL/GTiff and GDAl/* that can be passed to GDAL when the image is output.

-Steve W


On 4/14/2014 5:24 PM, Avi Blackmore wrote:
Hello,

        I've been using Mapserver to (among many other things) classify rasters 
for years.  I would output GeoTIFFs in 8-bit, paletted mode using a custom 
output format definition, which I defined as follows:

  OUTPUTFORMAT
     NAME "GTiff2"
     MIMETYPE "image/tiff"
     DRIVER "GDAL/GTiff"
     EXTENSION "tif"
     IMAGEMODE "PC256"
     TRANSPARENT FALSE
   END

        This worked for years with versions of Mapserver ranging from 4.4 up to 
5.6.

        Recently, I decided to test an upgrade to 6.4, and I have found that 
this no longer works.  The imagemode declaration is ignored and coerced back to 
RGB mode, which is unsuitable for our purposes.

        What is the proper way to get Mapserver to output 8-bit palletted 
GeoTIFFs using raster classification in 6.4?  Or, is this no longer possible?  
I hope not, because I really want to use 6.4 in production, it has some great 
new features.
--
Avi Blackmore
Head Programmer/System Administrator
Agri ImaGIS Technologies, Inc.




_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to