PerlMapScript clarification

Lowell Filak lfilak at MEDINACO.ORG
Fri Jun 3 13:37:03 PDT 2005


Greetings,

After doing a good job of confusing things I think some clarification is
due.

Here goes...
Some time ago an issue arose when using mapscript with mod_perl.
Users were not able to reliably send a map image to the client browser
via stdout without first saving the image as a file.
This lead to some additional discussion about being able to save the
image data to a scalar inside of perl.
This lead to the creation of the imageObj->write method.
However, until now the method was not useable from perlmapscript due to
the lack of a swig typemap to handle the operation.
There now exist/will-exist a patch and a bug report with the typemap to
correct this.
The current typemap utilizes PerlIO vs. stdio and PerlIO is only
available from perl 5.8+.
This means that any users of a perl version prior to 5.8 will still be
able to compile mapscript but will not be able to use the
imageObj->write method.

As far as mod_perl is concerned there may still exist other issues but
I'm not certain where those stand - perhaps a meeting at
OSGIS-MUM3/EOGEO is in order.

Hopefully this presents the 'Previously on <insert_favorite_TV_series>'
section and can clear things up.

Lowell



More information about the MapServer-users mailing list