[Mapserver-users] Mapscript error question
pw
p.willis at telus.net
Wed Jan 14 12:00:00 PST 2004
Hello,
I am having problems getting mapscript to read my map file under linux.
The errors I get are as follows after a call to ms_newMapObj("mapfile.map")
:
/*..........................................................................
............................................*/
[14-Jan-2004 11:46:36] PHP Warning: [MapServer Error]:
msProcessProjection(): no options found in 'init' file
in file.phtml on line 70
[14-Jan-2004 11:46:36] PHP Warning: Failed to open map file mapfile.map in
file.phtml on line 70
/*..........................................................................
...........................................*/
How do I find out from Mapserver what path it is looking at for the map
file?
I get the same message if I put the full 'pwd style' file path into the
ms_newMapObj call.
The projection I have in my mapfile.map is defined as follows:
/*..........................................................................
....................*/
NAME THEMAP
STATUS ON
SIZE 600 450
SYMBOLSET ../etc/symbols.sym
PROJECTION
"proj=cea"
"ellps=GRS80"
"lat_0=49"
"lon_0=-95"
"lat_1=49"
"lat_2=77"
"datum=NAD83"
END
/*..........................................................................
..................*/
The cea projection works fine if I call proj from the command line and
plug some values in.
The dump from mapserv is:
cgi-bin/mapserv -v
MapServer version 4.0.1
OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
SUPPORTS=PROJ
SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER
INPUT=TIFF
INPUT=EPPL7 INPUT=JPEG
INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE
Thanks for any insights.
Peter
More information about the MapServer-users
mailing list