Cannot locate shapefile
Ryan Ollerenshaw
ollerery at ENGR.ORST.EDU
Wed Aug 16 13:57:48 PDT 2006
Ryan Ollerenshaw wrote:
> I have had mapserver running successfully for several months now, but
> i had to reinstall both MapServer and Apache in order to add support
> for PostgreSQL. As a result i had to change my file structure a bit
> and now i am getting the following errors:*
>
> Warning*: [MapServer Error]: msSHPOpenFile():
> (/var/www/htdocs/mapserver/./thm_img.shp) in
> */var/www/htdocs/mapserver/simplemap.phtml* on line *27*
>
> *Warning*: [MapServer Error]: msSHPOpenFile():
> (/var/www/htdocs/mapserver/./../data/thm_img.shp) in
> */var/www/htdocs/mapserver/simplemap.phtml* on line *27*
Ok i found the problem sorry for the post, turns out it was a
permissions problem on the directory that i had the data stored in.
Strange that this problem would occur all of the sudden, i was using the
same directory when i had map server running previously.
> my mapfile is listed below but it was the same one that was working
> correctly for the last few months, does anyone know the direct cause
> of this error and why MapServer is looking in two different
> directories for my shapefile? when i put the shapefile in both
> directories the error goes away but i get a blank map:
>
> MAP
> IMAGETYPE PNG
> EXTENT -180 -90 180 90
> #EXTENT -350878.81 -9890271.86 350878.81 9890271.86
> SIZE 600 500
> SHAPEPATH "../data/"
>
> IMAGECOLOR 255 255 255
>
> WEB
> IMAGEPATH "/tmp/ms_tmp/"
> IMAGEURL "/ms_tmp/"
> METADATA
> wms_title "WMS test"
> wms_name "WMS test"
> wms_srs "EPSG:4326"
> END
> END
>
> PROJECTION
> "init=epsg:4326"
> # "proj=sinu"
> #"lon_0=0"
> #"ellps=WGS84"
> #"datum=WGS84"
> END
> LAYER
> NAME "themis"
> STATUS ON
> TILEINDEX "thm_img.shp"
> #TILEINDEX "thm_proj.shp"
> TILEITEM "location"
>
> PROJECTION
> "init=epsg:4326"
> END
>
> METADATA
> wms_title "Themis Dataset"
> wms_srs "EPSG:4326"
> END
> TYPE RASTER
> END
More information about the MapServer-users
mailing list