<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff
size=2>Albert, </FONT></SPAN></DIV>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff size=2>On
line 4, you have '<FONT face="Times New Roman" color=#000000 size=3>IMAGETYPE
255 255 255'</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff size=2><FONT
face=Arial color=#0000ff size=2></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff size=2>This
is causing the error. You should either comment this line out, or change
it to 'IMAGECOLOR 255 255 255'</FONT></SPAN></DIV>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<DIV><SPAN class=528195514-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Albert
Anderson<BR><B>Sent:</B> Thursday, June 29, 2006 9:47 AM<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] FW:
[UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near
(255):(line 4)<BR><BR></FONT></DIV>There is the my map file<BR>#This is our
first mapfile<BR>NAME "First"<BR>SIZE 400 300<BR>IMAGETYPE 255 255
255<BR>IMAGETYPE JPEG<BR>SHAPEPATH "/home/mapdata/"<BR>EXTENT -125.00 20.00
-65.00 50.00<BR>WEB<BR> TEMPLATE '/var/www/htdocs/first.html'<BR>
IMAGEPATH '/var/www/htdocs/tmp'<BR> IMAGEURL
'/tmp/'<BR>END<BR>LAYER<BR> NAME "US
States"<BR> STATUS default<BR> TYPE
line<BR> DATA "statesp020"<BR> LABELITEM
"STATE"<BR> CLASS<BR>
STYLE<BR>
COLOR 0 0 0<BR>
END<BR>
COLOR 0 0 0
<BR>
SIZE SMALL<BR> END<BR>
END<BR>END<BR>END<BR><BR>and there is my
html<BR><BR><html><BR><head><title>MapServer First
Map</title></head><BR><body><BR> <form method=POST
action="/cgi-bin/mapserv"><BR> <input type="submit"
value="Click Me"<BR> <input type="hidden"
name="map"<BR>
value="/home/mapdata/first.map"><BR> <input
type="hidden"
name="map_web_imagepath"<BR>
value="/var/www/htdocs/tmp/"><BR><BR> </form><BR> <IMG
SRC="[img]" width=400 height=300
border=0><BR></body><BR></html><BR><BR>Thanks,<BR>Albert<BR><BR><BR><BR><BR><B><I>"Fawcett,
David" <David.Fawcett@STATE.MN.US></I></B> wrote:
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<DIV><SPAN class=089313914-29062006><FONT face=Arial color=#0000ff
size=2>Albert, </FONT></SPAN></DIV>
<DIV><SPAN class=089313914-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=089313914-29062006><FONT face=Arial color=#0000ff
size=2>Please CC' the entire list on your responses.
</FONT></SPAN></DIV>
<DIV><SPAN class=089313914-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=089313914-29062006><FONT face=Arial color=#0000ff
size=2>From your description, you have an error in your mapfile. I
would suggest including the text of your mapfile in your response to the
list. </FONT></SPAN></DIV>
<DIV><SPAN class=089313914-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=089313914-29062006><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<DIV><SPAN class=089313914-29062006></SPAN> </DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Albert
Anderson [mailto:bart_doggers@yahoo.com] <BR><B>Sent:</B> Thursday, June 29,
2006 9:13 AM<BR><B>To:</B> Fawcett, David<BR><B>Subject:</B> RE:
[UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near
(255):(line 4) <BR><BR></FONT></DIV>Hi,<BR><BR> I did a wapperscript
and put name="map" in the html where the input is. Now I am getting
this error msLoadMap(): Unknown identifier. Parsing error near (255):(line
4) . Could you please help
me.<BR><BR>Thanks,<BR>Albert<BR><BR><B><I>"Fawcett, David"
<David.Fawcett@state.mn.us></I></B> wrote:
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2>Albert, </FONT></SPAN></DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2>You are calling the MapServer cgi program, but you are not telling
it which map file to use for configuration. If you are calling the
program with a get request (in a URL), it should look something
like:</FONT></SPAN></DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2><A
href="http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map">http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map</A></FONT></SPAN></DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2>You will likely set other variables in the URL also, like mode,
layers, etc. </FONT></SPAN></DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2>If you are calling the MapServer cgi from a html form, you are
missing a hidden html variable named map that, like the url variable
above, would contain the path to your map file. </FONT></SPAN></DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=583392113-29062006><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN
MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf
Of </B>Albert Anderson<BR><B>Sent:</B> Thursday, June 29, 2006 8:18
AM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B>
[UMN_MAPSERVER-USERS] load Map
error<BR><BR></FONT></DIV>Hi,<BR><BR> I am getting this error
loadMap(): Web application error. CGI variable "map" is not set.
That is when I am clicking the submit button and it doesnt load up the
map. Can anyone help me?<BR><BR><BR><BR>Thanks,<BR>Albert<BR>
<DIV></DIV>
<HR SIZE=1>
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <A
href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com">Great
rates starting at 1�/min.</A></BLOCKQUOTE></BLOCKQUOTE><BR>
<DIV></DIV>
<HR SIZE=1>
Yahoo! Music Unlimited - Access over 1 million songs. <A
href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/%20">Try
it free.</A> </BLOCKQUOTE><BR>
<P>__________________________________________________<BR>Do You
Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around
<BR>http://mail.yahoo.com </P></BLOCKQUOTE></BODY></HTML>