Problems with Itasca Demo

72555 davide.albertini at TICINO.COM
Mon Mar 27 08:11:26 EST 2006


Hallo,

I'm a new MapServr user, I started to install mapserver with the ms4w
1.4.1

and I got no errors, so I decided to install the MapServer demo
"workshop" downloaded from the main sit of map server.

I followed the instruction but I can't get the right page when try to
initialize the demo.

This is the configuration that I've did:

 

Error Log:

[Thu Mar 23 13:59:51 2006] [error] [client 127.0.0.1] script not
found or unable to stat: C:/Program Files, referer:
http://127.0.0.1/workshop/index.html

[Thu Mar 23 14:21:26 2006] [error] [client 127.0.0.1] script not
found or unable to stat: C:/Program Files, referer:
http://127.0.0.1/workshop/

 

Index.html (C:\MS4W\Apache\htdocs\workshop\):

<html>

  <head>

    <title>MapServer Itasca Application</title>

    <script language="javascript">

      function submit_form() {

        var template =
document.demo.map_web_template.options[document.demo.map_web_template.
selectedIndex].value;

        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</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.exe"
onSubmit="submit_form()">

 

      <input type="hidden" name="layer" value="lakespy2">

      <input type="hidden" name="layer" value="dlgstln2">

      <input type="hidden" name="zoomsize" value=2>

 

      <!-- EDIT THESE HIDDEN VARIABLES -->

      <input type="hidden" name="map"
value="C:\ms4w\Apache\htdocs\workshop\itasca.map">

      <input type="hidden" name="program"
value="C:ms4w\Apache\cgi-bin\mapserv.exe">

      <input type="hidden" name="root"
value="C:\ms4w\Apache\htdocs\workshop">

      <input type="hidden" name="map_web_imagepath"
value="C:\ms4w\Apache\htdocs\tmp">

      <input type="hidden" name="map_web_imageurl"
value=C:\ms4w\Apache\htdocs\tmp">

 

      <select name="map_web_template" size="1">

        <option value="itasca_basic.html"> Basic Application

        <option value="itasca_adds_scalebar.html"> &nbsp;&nbsp;--
Adds second scalebar

        <option value="itasca_adds_pan.html"> &nbsp;&nbsp;-- Adds pan
controls

        <option value="itasca_adds_frames.html"> &nbsp;&nbsp;-- Adds
frames

        <option value="itasca_adds_dhtml.html"> &nbsp;&nbsp;-- Adds
dhtml rubber-band box

      </select>

      <input type="submit" value="Initialize"></center>

 

    </form>

 

    <p><hr><p>

  </body>

</html>

 

Changes in itasca.map:

 # change this value to match your setup

 WMS_ONLINERESOURCE "http://localhost/workshop/index.html"

 

Changes in httpd.conf:

ServerRoot "C:\ms4w\Apache"                      --> Line 57

DocumentRoot "C:\ms4w\Apache\htdocs"               --> Line 228

 

Thanks for the help , I tried with the mailing list but I can't login.
Greetings. 



More information about the mapserver-users mailing list