[Mapserver-users] GeoTiff output color problems

Matthew Perry mtperry78 at sbcglobal.net
Tue Jun 1 16:31:25 PDT 2004


--0-292640018-1086132685=:52018
Content-Type: text/plain; charset=us-ascii

Hello folks,
 
Testing a new intallation of mapserver here and I'm getting some wierd results when outputting Geotiffs:
 
When I use the following:
 
OUTPUTFORMAT 
  NAME GTiff
  DRIVER "GDAL/GTiff"
  MIMETYPE "image/tiff"
  IMAGEMODE PC256           
  EXTENSION "tif"
END
 
I get this image: http://ktrin.cnrs.humboldt.edu/misc/gtiff_256.tif
 
This has the correct colors but poor quality, plus I would like to have 24 bit output. So I tried the following:
 
OUTPUTFORMAT 
  NAME GTiff
  DRIVER "GDAL/GTiff"
  MIMETYPE "image/tiff"
  IMAGEMODE RGB           
  EXTENSION "tif"
END
 
which gives me this image with bizzare colors (but better resolution): http://ktrin.cnrs.humboldt.edu/misc/gtiff_rgb.tif
 
Both images are properly georeferenced, though. I have tried reversing the order of the bands (in ArcMap 8.3) to no avail. 
 
Any ideas why the Geotiff 24bit color would be innacurate?
 
Thanks for you help,
Matt Perry
Humboldt State University
HostGIS.com
 
 



--0-292640018-1086132685=:52018
Content-Type: text/html; charset=us-ascii

<DIV>Hello folks,</DIV>
<DIV> </DIV>
<DIV>Testing a new intallation of mapserver here and I'm getting some wierd results when outputting Geotiffs:</DIV>
<DIV> </DIV>
<DIV>When I use the following:</DIV>
<DIV> </DIV>
<DIV>
<DIV>OUTPUTFORMAT <BR>  NAME GTiff<BR>  DRIVER "GDAL/GTiff"<BR>  MIMETYPE "image/tiff"<BR>  IMAGEMODE PC256           </DIV>
<DIV>  EXTENSION "tif"<BR>END</DIV>
<DIV> </DIV>
<DIV>I get this image: <A href="http://ktrin.cnrs.humboldt.edu/misc/gtiff_256.tif">http://ktrin.cnrs.humboldt.edu/misc/gtiff_256.tif</A></DIV>
<DIV> </DIV>
<DIV>This has the correct colors but poor quality, plus I would like to have 24 bit output. So I tried the following:</DIV>
<DIV> </DIV>
<DIV>
<DIV>OUTPUTFORMAT <BR>  NAME GTiff<BR>  DRIVER "GDAL/GTiff"<BR>  MIMETYPE "image/tiff"<BR>  IMAGEMODE RGB           </DIV>
<DIV>  EXTENSION "tif"<BR>END</DIV>
<DIV> </DIV>
<DIV>which gives me this image with bizzare colors (but better resolution): <A href="http://ktrin.cnrs.humboldt.edu/misc/gtiff_rgb.tif">http://ktrin.cnrs.humboldt.edu/misc/gtiff_rgb.tif</A></DIV>
<DIV> </DIV>
<DIV>Both images are properly georeferenced, though. I have tried reversing the order of the bands (in ArcMap 8.3) to no avail. </DIV>
<DIV> </DIV>
<DIV>Any ideas why the Geotiff 24bit color would be innacurate?</DIV>
<DIV> </DIV>
<DIV>Thanks for you help,</DIV>
<DIV>Matt Perry</DIV>
<DIV>Humboldt State University</DIV>
<DIV>HostGIS.com</DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV>
--0-292640018-1086132685=:52018--



More information about the MapServer-users mailing list