[Mapserver-users] trouble customizing

Eric Bridger eric at gomoos.org
Tue Apr 27 16:43:14 PDT 2004


At 04:51 PM 04/27/2004 -0500, Jenu Abraham wrote:
>hello..
>
>i have been trying to work with my mapserver GIS tool...
>
>the demo example works fine on my server with the state_ugl .shp , .dbf, .shx files
>
>but when i tried to use the shape files from the US national gov site statesp020.shp, .dbf, .shx files it shows the following error-- the files are in the right directory
>
>msDrawMap(): Image handling error. Failed to draw layer named 'states'.
>msSHPOpenFile(): Unable to access file. (C:\cgi-bin/.\statesp020)
>msSHPOpenFile(): Unable to access file. (C:\cgi-bin/.\data/statesp020)
>
>do u know why?
>
>i modified the map file to point to the shapep020 file
>i tried to use shape files from different sources it all gave me the same error

In your DATA tag use the full path to the shape file. I'm not sure what mapserver does with windows paths but something like:
C:\data\statesp020

Or else look up SHAPEPATH and set that to the directory below which your shape files are.




More information about the MapServer-users mailing list