[FGS] Please HELP! ultra newbie!
Alberto Castillo
proyecto.edulin at gmail.com
Thu Apr 16 11:20:37 EST 2009
Hi list!
I am Alberto C. and live in Argentina
I recently involucred in this and I whish implement gis in my work.
But I have a problem:
I unzip workshop-5.0 from mapserver and install into the fgs tree,
that in this case is into my home directory.
in fgs tre, into the www/htdocs I copy all files, well...
I run with http://localhost:8080/cgi-bin/mapserv
and I get a response that httpd server runs:
"No query information to decode. QUERY_STRING is set, but empty. "
Well... when I run the site example I can see the index running:
"MapServer Itasca Application (ms v5.0)"
But when I clic on 'initialize' I get the following error:
Content-type: text/html isValidTemplate(): Web application error.
Missing magic string, itasca_basic.html doesn't look like a MapServer
template.
My index html is the followng, I remember that I install fgs like
normal user and my user is 'winter':
<html>
<head>
<title>MapServer Itasca Application</title>
<script language="javascript">
function configure() {
var template =
document.demo.template.options[document.demo.template.selectedIndex].value;
// EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP
var snippet = "IMAGEPATH '/home/winter/fgs/www/htdocs/graphics'";
snippet += " IMAGEURL '/tmp/'";
snippet += " TEMPLATE " + template;
document.demo.map_web.value = snippet;
if(template.indexOf("frame") != -1) document.demo.action =
"frames.html";
if(template.indexOf("dhtml") != -1) document.demo.action =
"frames_dhtml.html";
}
</script>
</head>
<body bgcolor="#FFFFFF">
<center><h2>MapServer Itasca Application (ms v5.0)</h2></center>
<p><hr><p>
This demonstration application will take you through various
levels of complexity. Starting with a basic application that
allows a user to pan/zoom and change layers we add:
<ul>
<li> dynamically configured scalebars
<li> javascript-based panning
<li> query results to a frame
<li> and finally, a DHTML rubber-band zoom/query capabilty
</ul>
The base data is the old-reliable Itasca dataset that we know and love...
<!-- EDIT THE FORM ACTION -->
<form name="demo" method="GET" action="/cgi-bin/mapserv"
onSubmit="configure()">
<input type="hidden" name="layer" value="lakespy2">
<input type="hidden" name="layer" value="dlgstln2">
<input type="hidden" name="zoomsize" value=2>
<input type="hidden" name="map_web" value="">
<!-- EDIT THESE HIDDEN VARIABLES -->
<input type="hidden" name="map"
value="/home/winter/fgs/www/htdocs/itasca.map">
<input type="hidden" name="program" value="/cgi-bin/mapserv">
<input type="hidden" name="root" value="/">
<select name="template" size="1">
<option value="itasca_basic.html"> Basic Application
<option value="itasca_adds_scalebar.html"> -- Adds
second scalebar
<option value="itasca_adds_pan.html"> -- Adds pan controls
<option value="itasca_adds_frames.html"> -- Adds frames
<option value="itasca_adds_dhtml.html"> -- Adds
dhtml rubber-band box
</select>
<input type="submit" value="Initialize"></center>
</form>
<p><hr>
<table width="100%"><tr><td align="right">This site running
MapServer v. 5.0</td></tr></table>
</body>
</html>
Any can help me please???
Thank you to all for now!
More information about the Foss-gis-suite
mailing list