[Chameleon] Σχετ: error
Andreas Douvalis
anddreas2 at yahoo.gr
Sun Jan 22 12:51:34 EST 2012
Check Your map file 9 (I suppose chameleon.map or world_wms.map).
The first line must start with: MAP
I think it is chameleon.map problem.
For example if start:
#
# Start of map file
#
# Sample map file for a chameleon app.
#
NAME DEMO
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.sym
EXTENT -2594561 -712631 3467361 3840000
UNITS METERS
SHAPEPATH "../data".......
...
.....
change to :
MAP
#
# Start of map file
#
# Sample map file for a chameleon app.
#
NAME DEMO
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.sym
EXTENT -2594561 -712631 3467361 3840000
UNITS METERS
SHAPEPATH "../data"
....................
..................
________________________________
Απο: ayub kabeba <akabeba at gmail.com>
Προς: chameleon at lists.maptools.org
Στάλθηκε: 7:41 μ.μ. Κυριακή, 22 Ιανουαρίου 2012
Θεμα: [Chameleon] error
hi,
am really new to mapserver..i installed ms4w and chameleon.i followed the instructions step by step in the documentation on how to run the application.however i receive the following error which i totally cant interpret.
Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): First token
must be MAP, this doesn't look like a mapfile.
in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line
215
Fatal error: Uncaught exception 'MapScriptException' with message
'Failed to open map file
"C:\ms4w\apps\myApp\htdocs/../map/chameleon.map"' in
C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php:215
Stack trace:
#0 C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php(215):
ms_newMapObj('C:\ms4w\apps\my...', 'C:\ms4w\apps\my...')
#1 C:\ms4w\apps\chameleon\htdocs\chameleon.php(689):
MapSession->readMapFile('C:\ms4w\apps\my...', 'C:\ms4w\apps\my...')
#2 C:\ms4w\apps\chameleon\htdocs\chameleon.php(546):
Chameleon->CWCInitializeMap()
#3 C:\ms4w\apps\myApp\htdocs\index.phtml.phtml(27):
Chameleon->CWCInitialize('./template.html', '../map/chameleo...')
#4 {main}
thrown in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php
on line 215
please help!
_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20120122/7acba6e7/attachment.htm
More information about the Chameleon
mailing list