SVN is Broken

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Fri Aug 3 09:53:20 EDT 2007


Stephen Woodbridge wrote:
> OK, no problem. Can you tell me what needs to change for this:
> 
>   OUTPUTFORMAT
>     NAME "agg/png24"
>     MIMETYPE "image/png; mode=24bit"
>     DRIVER "AGG/PNG"
>     EXTENSION "png"
>     IMAGEMODE "RGB"
>     FORMATOPTION "PALETTE_FORCE=TRUE"
>     FORMATOPTION "PALETTE=/u/data/maps/palette-google-agg.txt"
>   END
> 
> So it sounds like there is a default pre-installed driver aggpng24 how 
> can I define a driver that does the color reduction to 8 bit pngs like 
> above?
> 

  You need to use an OUTPUTFORMAT with the format options to have the 
color reduction, which is not available by default. So your OUTPUTFORMAT 
would be somethig like:

OUTPUTFORMAT
      NAME "agg/png24"
      MIMETYPE "image/png; mode=24bit"
      DRIVER "AGG/PNG24"
      EXTENSION "png"
      FORMATOPTION "PALETTE_FORCE=TRUE"
      FORMATOPTION "PALETTE=/u/data/maps/palette-google-agg.txt"
    END

> Thanks,
>   -Steve
> 
> Yewondwossen Assefa wrote:
>> Steve,
>>
>>  This is related to changes in bug 
>> http://trac.osgeo.org/mapserver/ticket/2195 .  There was a clean up 
>> that was done in the agg output formats (removing those that do not 
>> really make sense/don't work).  Only 2 drivers were kept AGG/PNG24 and 
>> AGG/JPEG.
>>  Plus there are now default imagetypes "aggjpeg" and "aggpng24" that 
>> can be used.
>> Sorry these changes came late but they were kind of a necessary cleanup.
>>
>> later,
>>
>> Stephen Woodbridge wrote:
>>> Hi Devs,
>>>
>>> SVN is broken. I just did an update and get the following error:
>>>
>>> loadOutputFormat(): General error message. OUTPUTFORMAT clause 
>>> references driver AGG/PNG, but this driver isn't configured.
>>>
>>> This worked fine yesterday.
>>>
>>> http://imaptools.com/cgi-bin/mapserv-4.99?mode=map&map=/u/data/test/spiral.map 
>>>
>>>
>>> TIA,
>>>   -Steve W
>>>
>>
>>
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-dev mailing list