[mapserver-dev] R: Re: loadWeb(): Unknown identifier

francescoboccacci at libero.it francescoboccacci at libero.it
Sat Mar 9 09:13:55 PST 2013


Hi Thomas,
i removed the comment  in the first line and now there is MAP word but still 
doesn't work.
Any suggestion?

Thanks

Francesco

>----Messaggio originale----
>Da: thomas.bonfort at gmail.com
>Data: 09/03/2013 17.44
>A: "francescoboccacci at libero.it"<francescoboccacci at libero.it>
>Cc: <mapserver-dev at lists.osgeo.org>
>Ogg: Re: [mapserver-dev] loadWeb(): Unknown identifier
>
>The first word in the file should be "MAP", try removing or moving the 
comment.
>
>--
>thomas
>
>On 9 March 2013 16:48, francescoboccacci at libero.it
><francescoboccacci at libero.it> wrote:
>> Hi all,
>> i'm using mapserver 6.2.0:
>>
>> MapServer version 6.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
>> SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO 
SUPPORTS=SVG_SYMBOLS
>> SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER
>> SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS
>> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>>
>> during a test i receive the follow error:
>>
>> loadWeb(): Unknown identifier. Parsing error near 
(/var/www/mapserver/tmp/):
>> (line 1)
>>
>> my hello.map file is:
>>
>> # This is our "Hello World" mapfile
>> MAP
>> NAME "Hello_World"
>> SIZE 400 300
>> IMAGECOLOR 249 245 186
>> IMAGETYPE png
>> EXTENT -1.00 -1.00 1.00 1.00
>> WEB
>>         TEMPLATE "/var/www/mapserver/hello.html"
>>         #IMAGEPATH "/var/www/mapserver/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 class
>> END # end layer
>> END # end mapfile
>>
>> and my template is
>>
>> <html>
>> <head><title>MapServer Hello World</title></head>
>> <body>
>> <form method=POST action="/cgi-bin/mapserv">
>>         <input type="submit" value="Click Me">
>>         <input type="hidden" name="map" value="/var/www/mapserver/hello.map"
>
>>         <input type="hidden" name="map_web_imagepath" value="
>> /var/www/mapserver/tmp/">
>>
>> </form>
>> <IMG SRC="[img]" width=400 height=300 border=0>
>> </body>
>> </html>
>>
>> What am i wrong?
>>
>> Thanks
>>
>> Francesco
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>




More information about the mapserver-dev mailing list