[FGS] Getting error while executing sample application in FGS in fedora 7
muzaffar hussain
mhd.muzaffar at gmail.com
Wed Jan 7 05:30:59 EST 2009
hi all.
i am very new to this map server and FGS, i have problem of executing the
sample application in FGS.
First of all i have installed the FGS mapserver in /opt/fgs in 9000 port
. after that i
checked in browser by loading this URL:*
http://localhost:9000/cgi-bin/mapserv*
then it displays the message as
* No query information to decode. QUERY_STRING is set, but empty.
*Then i have created one Sample Helloworld application .
For this i have created one hello.html file and i have placed that file in
/*opt/fgs/www/htdocs/*
*
*my* **Hello.html
*<html>
<head>
<title>MapServer Hello World11</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv">
<input type="submit" value="Click Me">
<input type="hidden" name="map" value="/opt/fgs/www/cgi-bin/hello.map">
<input type="hidden" name="map_web_imagepath"
value="/opt/fgs/www/htdocs/tmp/">
</form>
<IMG SRC="[img]" width=400 height=300 border=1>
</body>
</html>
Then i have created one hello.map file and placed that file in *
/opt/fgs/www/cgi-bin/
*my *hello.map
*# 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 "/opt/fgs/www/htdocs/hello.html"
IMAGEPATH "/opt/fgs/www/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
After that i run the HTML file (hello.html) in browser as the
*URL:http://localhost:9000/hello.html
* It displays one button *"Click Me"* and *broken image*
If i press the "Click Me" button it shows errors as
* loadWeb(): Unknown identifier. Parsing error near
(/opt/fgs/www/htdocs/tmp/):(line 1)
*Please help me out from this problem,because i am very newbee to this
mapserver and FGS
Thanks in advance
regards
muzaffar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/foss-gis-suite/attachments/20090107/bc927e95/attachment.htm
More information about the Foss-gis-suite
mailing list