Hi there,

in the "Beginning Mapserver" book there is an example which should only display a box showing "Hello Map"

Well, although I have other examples (not from that book) that do run, I don't get this one running ... *sigh*

The error I get is
loadWeb(): Unknown identifier. Parsing error near (/var/www/tmp/):(line 1)

I have no clue *awk*.
I googled around but afterwards I still had no clue ...

The mapfile looks like this:

# This is our "Hello World" mapfile
NAME "Hello World"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.0 -1.0 1.0 1.0
WEB
     TEMPLATE "/var/www/mapserver/hello/hello.html"
     IMAGEPATH "/var/www/tmp/"
     IMAGEURL "/tmp/"
END
LAYER
     STATUS default
     TYPE point
     FEATURE
          POINTS  0.00 0.00 END
          TEXT "Hello World"
     END # end feature
     CLASS
          STYLE
               COLOR 255 0 0
          END
          LABEL
               TYPE bitmap
          END
     END
END
END


The hello.html like this:

<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="/home/mapdata/hello.map">
<input type="hidden" name="map_web_imagepath" value="/var/www/tmp/">
    </form>
    <IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>


Thanks in advance!
Katja
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to