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

Simpson, Andrew Andrew.Simpson at ssc.nasa.gov
Wed Aug 13 14:10:56 EDT 2003


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 at frii.com]
Sent: Tuesday, August 12, 2003 4:26 PM
To: Simpson, Andrew
Cc: 'mapserver-users at 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




More information about the mapserver-users mailing list