Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file?
Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <mapserver-users@lists.osgeo.org> Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:[EMAIL PROTECTED] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users@lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:[EMAIL PROTECTED] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users@lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a écrit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:[EMAIL PROTECTED] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users@lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a écrit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give .gif extensión. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:[EMAIL PROTECTED] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users@lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users