[mapserver-users] loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1)

Barend Köbben kobben at itc.nl
Wed Nov 12 07:31:57 EST 2008


map files should contain a MAP object, ie. It should start with
MAP 
and have a corresponding END (at the end ;-)

-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253


On 12-11-08 11:09, "le nho luu" <lenholuu at yahoo.com> wrote:

> Hello everyone,
> 
> I'm new, and am currently having trouble figuring out what's wrong with my
> .map files.  I've checked all the lines in my .map files for missing
> parenthesees.  I'm getting this error when I try to click the button to load
> both test map files:
> 
> loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1)
> 
> Is there something wrong with my environment?  Are there differences in
> reading code in version 5.0.0.  I am using Windows XP, Mapserver 5.0.0,
> Apache, and PHP 5.2.4.
> Any help is appreciated!
> Here is my sample hello.map file:
> # This is our "Hello World" mapfile
>  NAME "Hello_World"
>  SIZE 400 300
>  IMAGECOLOR 249 245 186
>  IMAGETYPE png
>  EXTENT -1.00 -1.00 1.00 1.00
>  WEB
> TEMPLATE "/ms4w/apps/vidu/htdocs/hello.html"
> IMAGEPATH "/ms4w/tmp/ms_tmp/"
> IMAGEURL "/ms_tmp/"
>  END
>  LAYER
> STATUS default
> TYPE point
> FEATURE
> POINTS 0.0 0.0 END
> TEXT "Hello World"
> END # end feature
> CLASS
> STYLE
> COLOR 255 0 0
> END
> LABEL
> TYPE bitmap
> END
>  END
>  END
>  END
> Here is my sample hello.html file:
> <html>
>  <head><title>MapServer Hello World</title></head>
>  <body>
>  <form method=POST action="/cgi-bin/mapserv.exe">
>  <input type="submit" value="Click Me">
>  <input type="hidden" name="map" value="/ms4w/apps/vidu/htdocs/hello.map">
>  <input type="hidden" name="map_web_imagepath" value="/ms4w/tmp/ms_tmp">
>  </form>
>  <IMG SRC="[img]" width=400 height=300 border=0>
>  </body>
> </html>
> 
> 
> 
> 
>       
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.


More information about the mapserver-users mailing list