Win XP and paths in the .map file

Manuel Alonso manuel.alonso at ERMAPPER.CO.UK
Thu Dec 2 11:02:43 EST 2004


Good afternoon:

I have been running MapServer 4.2.0 in Windows 2K and that works OK. I
have copied my application to Windows XP SP2 and configured all the
permissions, etc. as I did on Windows 2K, and now it seems that MapServer
is unable to read the paths from in the .map file. The .map file contents
are:

NAME satgeobase
 SHAPEPATH "shapefiles/satgeobase"
 UNITS meters
 IMAGECOLOR 255 255 255
 TRANSPARENT ON
 SYMBOLSET symbols/symbols.sym

LAYER
 DEBUG on
 NAME countries
 TYPE polygon
 STATUS ON
 DATA "cntry98"

  CLASS
   NAME "Country outline"
  COLOR 255 255 255
  OUTLINECOLOR 255 255 0
  END
END

END

If I type the following line in Internet Explorer:

http://127.0.0.1/mapserver/mapserv.exe?
map=c:\Inetpub\wwwroot\satgeobase.map&mode=map&layer=countries&imgsize=800+
400&mapext=-180+90+180+-90

Map Server returns:

msDrawMap(): Image handling error. Failed to draw layer named 'countries'.
msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98)
msSHPOpenFile(): Unable to access file.
(c:\Inetpub\wwwroot\shapefiles/satgeobase/cntry98)

If I change the SHAPEPATH line to SHAPEPATH "shapefiles\satgeobase\", then
the result is:

msDrawMap(): Image handling error. Failed to draw layer named 'countries'.
msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98)
msSHPOpenFile(): Unable to access file.
(c:\Inetpub\wwwroot\shapefiles\satgeobase\cntry98)

I have tried to use double backslash, double forwardslash and many
combinations, but it seems that MapServer.exe cannot find the shape files.
The shapefiles exist, names and paths are correct, the default firewall
that XP sets up is disabled, and I have even given administrative rights
to the IUSR_<> user, just in case. I get the same result, the same answer
that MapServer gives when the files do not exist.

Does anyone know if this is a known problem? Any ideas?

Thanks very much in advance,

Manuel



More information about the mapserver-users mailing list