[Mapserver-users] saveImage --> save in 4.0

Simpson, Andrew Andrew.Simpson@ssc.nasa.gov
Wed, 13 Aug 2003 13:10:56 -0500


I got it almost working, but having trouble with the setOption() being
unblessed.

Not that important right now, so will wait for the mapscript documentation
instead of guessing and snooping the source.

Thanks for your response,
Drew.

-----Original Message-----
From: Sean Gillies [mailto:sgillies@frii.com]
Sent: Tuesday, August 12, 2003 4:26 PM
To: Simpson, Andrew
Cc: 'mapserver-users@lists.gis.umn.edu'
Subject: Re: [Mapserver-users] saveImage --> save in 4.0


On Tuesday, August 12, 2003, at 02:50  PM, Simpson, Andrew wrote:

> Thanks, for the response.  That helps clarify the new functionality.
> Is there code to instantiate an outputFormat object and access its
> methods/attributes from code without the use of map files?

Here's an example of how you'd do it in Python (because I don't
remember exactly the syntax for the Perl MapScript constructors).
Just add the necessary $->{} noise to Perlify it. ;)

formatobj = outputFormatObj('GD/PNG')    # Driver argument
formatobj.transparent = MS_ON
formatobj.setOption('INTERLACE', 'ON')

mapobj.outputformat = formatobj  # That's it

cheers,
Sean


--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users