[FGS] Getting error while executing sample application in FGS in fedora 7

Daniel Morissette dmorissette at mapgears.com
Wed Jan 7 08:21:30 EST 2009


See my reply to this on the mapserver-users list:
http://lists.osgeo.org/pipermail/mapserver-users/2009-January/059217.html


muzaffar hussain wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Foss-gis-suite mailing list
> Foss-gis-suite at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/foss-gis-suite


-- 
Daniel Morissette
http://www.mapgears.com/


More information about the Foss-gis-suite mailing list