[Mapserver-users] saveImage --> save in 4.0
Sean Gillies
sgillies at frii.com
Wed Aug 13 11:26:27 PDT 2003
Drew, my response is at the bottom:
On Wednesday, August 13, 2003, at 12:10 PM, Simpson, Andrew wrote:
>
> 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
>
Drew,
Please consider reporting the issue with setOption to the MapServer
Bugzilla http://mapserver.gis.umn.edu/bugs. Make sure to note that
it's a 4.0 bug. Hopefully other Perl MapScript users can help confirm
the issue. It's working for me (Python) and we could get it fixed
in a 4.0.1 release.
cheers,
Sean
--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies
More information about the MapServer-users
mailing list