[mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1)
Guillaume Sueur
guillaume.sueur at neogeo-online.net
Fri May 16 14:14:56 PDT 2008
Hi,
the map file must begin by a MAP statement, which you will END at the
end of the file :
MAP
NAME "Hello_world"
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
Regards,
Guillaume
Νίκος Παπαδάκης a écrit :
> I got over the msLoadMap() problem.
> but now i get this message : loadWeb(): Unknown identifier. Parsing
> error near (:):(line 1)
>
> I have checked the map file over and over agian but i can't find any error.
> I quote the contents of map file and html template again.
>
>
> Map file (name : hello.map Location C:/ms4w/Apache/htdocs/hello.map)
>
> NAME "Hello_world"
> 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
>
>
>
> HTML Template (name : test.html Location:C:/ms4w/Apache/htdocs/test.html )
>
>
>
>
>
>
> O/H Jeff McKenna έγραψε:
>> Hello,
>>
>> There were changes in MapServer 5.0 in the way CGI variables are
>> passed...so you might try to replace that "map_web_imagepath" line in
>> your hello.html with something like:
>>
>> <input type="hidden" name="map_web" value="imagepath
>> /ms4w/tmp/ms_tmp/ imageurl /ms_tmp/">
>>
>> -jeff
>>
>>
>>
>>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
More information about the MapServer-users
mailing list