[MAPSERVER-USERS] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)

Pål Kristensen pal.kristensen at statkart.no
Wed May 21 08:05:02 EDT 2008


Hi!
 
Did you resolve this issue? I have seen something similar when the mapfile
is encoded with wrong character set. Have you tried saving the file as ANSI
or UTF-8?

Regards,
Pål Kristensen



Νίκος Παπαδάκης wrote:
> 
> 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] 
> 
> 
> </body>
> </html>
> *
> *
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: http://www.nabble.com/loadWeb%28%29%3A-Unknown-identifier.-Parsing-error-near-%28%3A%29%3A%28line-1%29-tp17344928p17364161.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list