[Mapserver-users] saveImage --> save in 4.0
Simpson, Andrew
Andrew.Simpson at ssc.nasa.gov
Thu Aug 14 13:22:59 PDT 2003
Thanks for yet another response.
You guys are doing a great job with Mapserver.
Its been an outstanding collection of software and am looking forward to
digging in to all the new functionality.
Just wanted to give you guys a 'that a boy', since usually all you probably
hear is gripes.
Now on to my griping, here is one of my attempts:
my $formatobj = new mapscript::outputFormatObj('png');
$formatobj->{transparent} = $mapscript::MS_ON;
$formatobj->setOption('interlace', $mapscript::MS_ON);
And to assign the object I tried
$map->{outputformat} = $formatobj;
and
$map->setOutputFormat( $formatobj );
Thanks again,
Drew.
> -----Original Message-----
> From: Lowell Filak [mailto:lfilak at medinaco.org]
> Sent: Thursday, August 14, 2003 9:18 AM
> To: Simpson, Andrew
> Subject: RE: [Mapserver-users] saveImage --> save in 4.0
>
>
> I'm still recovering from food poisoning but I'll try to help
> sort this
> out and post the solution back to the list.
> Are you calling setOption as a member or method?
> It appears to be a method and should not have a problem with "bless".
> What does your code look like?
> Thanks.
> Lowell
>
> The following message was sent by "Simpson, Andrew"
> <Andrew.Simpson at ssc.nasa.gov> on 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 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
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
More information about the MapServer-users
mailing list