[mapserver-users] python mapscript - FORMATOPTION

Guillaume Sueur no-reply at neogeo-online.net
Tue Oct 13 18:58:54 EDT 2009


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...

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