mapscript problem...

Tom Kralidis tomkralidis at hotmail.com
Sun Feb 11 06:15:20 PST 2001


I would like to use mapscript (via Perl) to add functionality to my 
application, and have a few questions.

1./ How does mapscript interact w/ web applications.  ie does it replace the 
mapserv binary, acting as an interface to it?  I have an app underway 
without mapscript, so how does one integrate it into a web app?

2./
I tried the online example under the mapscript documentation page:

#!/usr/bin/perl
use mapscript;
$map = new mapObj('/www/docs/mapserv/example.map') or die('Unable to open 
mapfile: $!');
$img = $map->draw() or die('Unable to draw map');
mapscript::msSaveImage($img, '/www/docs/images/example.gif', 
$map->{interlace}, $map->{transparent});

..and received this error:

Unable to open mapfile: Inappropriate ioctl for device

I tried this both through a CGI and command-line mode.

Any idea what could be causing this (using Linux RedHat6.2).

Thanks

..Tom
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




More information about the MapServer-users mailing list