[mapserver-users] python mapscript - FORMATOPTION

Ivan Mincik ivan.mincik at gmail.com
Tue Oct 13 19:43:42 EDT 2009


On Wed, Oct 14, 2009 at 12:58 AM, Guillaume Sueur
<no-reply at neogeo-online.net> wrote:
> Hi,
>
> Just an idea on the fly, because I didn't try it myself, but you could
> maybe try :
> of.setOption("QUANTIZE_FORCE", "ON")
> and see what happens...

Thanks a lot Guillaume. It is working, but I am sure, I was also
trying something similar too. :)

>
> regards
>
> Guillaume
>
> Le mardi 13 octobre 2009 à 23:54 +0200, Ivan Mincik a écrit :
>> Dear all,
>> I am trying to set "FORMATOPTION "QUANTIZE_FORCE=ON" option using
>> python mapscript. I can successfully use this code snippet to write
>> OUTPUTFORMAT in to my mapfile:
>>
>>                 of = mapscript.outputFormatObj("AGG/PNG","PNG_AGGAQ")
>>                 of.name = "PNG_AGGAQ"
>>                 of.driver = 'AGG/PNG'
>>                 of.imagemode = mapscript.MS_IMAGEMODE_RGBA
>>                 of.mimetype = "image/png"
>>                 of.transparent = 1
>>
>> but
>>                of.setOption("FORMATOPTION", "QUANTIZE_FORCE=ON")
>> is not creating any result to my mapfile. Is 'setOption' working in
>> python mapscript ?
>>
>> Thanks,
>> Ivan
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>


More information about the mapserver-users mailing list