[mapserver-users] displaying bitmaps generated directly via CGI: problems porting app.

A. Giacomelli andreag at crs4.it
Mon May 28 09:10:03 EDT 2001


Hi,

I have an application running on an NT box where static images are
generated directly via calls to the mapserv executable. It works fine.

I have moved the installation to another machine (changing a few
directories, and -of course- updating any relevant dirs. in my code),
and the IMG is no longer displayed.


in the original app. the image was generated with something like:

/cgi-bin/mapserv?map=..\htdocs\mia\gmap3\htdocs\cat.map&mapext=1432280.22+4480118.85+1452280.22+4500118.85&mapsize=100+100&mode=map

in the new version, for logistic reasons I have moved my apache htdocs
dir out of the Apache tree, so now it looks like:

/cgi-bin/mapserv?map=C:\something\htdocs\mia\gmap3\htdocs\cat.map&mapext=1432280.22+4480118.85+1452280.22+4500118.85&mapsize=100+100&mode=map

Mapserv CGI reference states that the path specified in the map=
parameter should be relative to the location of the executable;
however,  I have noted that absolute paths are also accepted (so my
*second* example works on the *first* installation.

The only difference I can see is that in my new installation data and
apache reside currently on two different drives. Do you think I should
move the data to the same drive as Apache ?

(...can the problem be due to something hard-coded in the Windows binary
?).

Thanks for any advice

-- 
=========================================
Andrea Giacomelli
Centre for Advanced Studies, Research and
Development in Sardinia
Environment Group

http://www.crs4.it/~andreag
=========================================



More information about the mapserver-users mailing list