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*

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

Reply via email to