[mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1)
Fawcett, David
David.Fawcett at state.mn.us
Tue May 20 09:58:40 PDT 2008
For testing map files, I like to go the simplest route and use mode=map.
I took the map file text below (not including "test.map" because that
would break the file) and I pasted it into a new map file.
I called it using the URL:
http://localhost/cgi-bin/mapserv.exe?mode=map&map=d:\test.map
and it returned a yellow rectangle with "Hello World" and a one pixel
red dot in the middle of it.
There appears to be nothing wrong with your map file. I am running MS4W
2.2.6
David.
PS. This line from your html page looks a little funky:
<input type="hidden" name="map_web" value="imagepath
C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/">
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of
nipapada at gmail.com
Sent: Tuesday, May 20, 2008 11:41 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] loadWeb(): Unknown identifier.
Parsing error near(:):(line 1)
Unfortunately the error insists.
I have tried every advice you gave me but stiil nothing.
All the modifications i did are:
1)Check the orientation of slashes and i actually tried every
possible orientation.
2)Placed the MAP keyword in the first line of .map file.
3)Tried an older version of MapServer (although there is nothing
different according to the site...).
Perhaps i should try it on linux?
Does it make any difference at all?
test.map
MAP
NAME "TEST!!!"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00 1.00 1.00
WEB
TEMPLATE "C:\ms4w\Apache\htdocs\test.html"
IMAGEPATH "C:\ms4w\Apache\htdocs\tmp"
IMAGEURL "/tmp/"
END
LAYER
STATUS default
TYPE point
FEATURE
POINTS 0.0 0.0 END
TEXT "Hello World"
END
CLASS
STYLE
COLOR 255 0 0
END
LABEL
TYPE bitmap
END
END
END
END
test.html
<html>
<head><title>MapServer Hello World</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv.exe">
<input type="submit" value="Click">
<input type="hidden" name="MAP"
value="C:\ms4w\Apache\htdocs\test.map">
<input type="hidden" name="map_web" value="imagepath
C:\ms4w\Apache\htdocs\tmp\ imageurl /tmp/">
</form>
<IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080520/a1078153/attachment.htm>
More information about the MapServer-users
mailing list