FW: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4)

Tamas Szekeres szekerest at GMAIL.COM
Thu Jun 29 10:59:17 EDT 2006


You might have to replace
 IMAGETYPE 255 255 255
with
 IMAGECOLOR 255 255 255

Regards,

Tamas

2006/6/29, Albert Anderson <bart_doggers at yahoo.com>:
> There is the my map file
> #This is our first mapfile
> NAME "First"
> SIZE 400 300
> IMAGETYPE 255 255 255
> IMAGETYPE JPEG
> SHAPEPATH "/home/mapdata/"
> EXTENT -125.00 20.00 -65.00 50.00
> WEB
>   TEMPLATE '/var/www/htdocs/first.html'
>   IMAGEPATH '/var/www/htdocs/tmp'
>   IMAGEURL '/tmp/'
> END
> LAYER
>     NAME "US States"
>     STATUS default
>     TYPE line
>     DATA "statesp020"
>     LABELITEM "STATE"
>     CLASS
>        STYLE
>                COLOR 0 0 0
>        END
>                COLOR 0 0 0
>                SIZE SMALL
>        END
>     END
> END
> END
>
> and there is my html
>
> <html>
> <head><title>MapServer First Map</title></head>
> <body>
>   <form method=POST action="/cgi-bin/mapserv">
>     <input type="submit" value="Click Me"
>     <input type="hidden" name="map"
>               value="/home/mapdata/first.map">
>     <input type="hidden" name="map_web_imagepath"
>               value="/var/www/htdocs/tmp/">
>
>   </form>
>   <IMG SRC="[img]" width=400 height=300 border=0>
> </body>
> </html>
>
> Thanks,
> Albert
>
>
>
>
> "Fawcett, David" <David.Fawcett at STATE.MN.US> wrote:
>
> Albert,
>
> Please CC' the entire list on your responses.
>
> 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.
>
> David.
>
>
> -----Original Message-----
> From: Albert Anderson [mailto:bart_doggers at yahoo.com]
> Sent: Thursday, June 29, 2006 9:13 AM
> To: Fawcett, David
> Subject: RE: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing
> error near (255):(line 4)
>
> Hi,
>
>  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.
>
> Thanks,
> Albert
>
> "Fawcett, David" <David.Fawcett at state.mn.us> wrote:
>
> Albert,
>
> 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:
>
> http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map
>
> You will likely set other variables in the URL also, like mode, layers, etc.
>
>
> 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.
>
> David.
>
>
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of Albert Anderson
> Sent: Thursday, June 29, 2006 8:18 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] load Map error
>
> Hi,
>
>  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?
>
>
>
> Thanks,
> Albert
>
>  ________________________________
>  Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1�/min.
>
>  ________________________________
>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
>
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


More information about the mapserver-users mailing list