[MS4W-Users] MapServer Tutorial Help Needed

jamesparker jamesparker at deloitte.co.uk
Wed Feb 23 09:40:54 EST 2011


http://osgeo-org.1803224.n2.nabble.com/file/n6056533/index.html index.html 
http://osgeo-org.1803224.n2.nabble.com/file/n6056533/itasca.map itasca.map 
http://osgeo-org.1803224.n2.nabble.com/file/n6056533/access.log access.log 
http://osgeo-org.1803224.n2.nabble.com/file/n6056533/MapServer_ScreenShot.png
MapServer_ScreenShot.png 

Hello all,

I am new to the mailing list and am just (trying to) get my hands dirty with
MapServer. I have been plugging OSGeo projects to my colleages having come
from an ESRI background. My first task is to show them a working intranet
page with mapping service. Embarrassingly, I seem to have fallen at the
first hurdle working my way through the demo found here:
http://mapserver.org/introduction.html

I have crashed out on the 'Get Demo Running' Section. Steps taken so far:

I have successfully installed and started OSGEO4W-Apache Web Server. 
I have downloaded the workshop data to this
location:"C:\OSGeo4W\apache\htdocs\workshop2". 
I am able to hit the 'Initialize' button at
http://localhost:8080/workshop2/index.html
I can see that mapserv.exe is being executed
(I have searched the forum and online documentation)

When the subsequent page displays, the map, scalebar and legend do not
appear. Please see the attached screenshot.

My log access.log is as follows:


http://localhost:8080/cgi-bin/mapserv.exe?layer=lakespy2&layer=dlgstln2&zoomsize=2&map_web=+TEMPLATE+itasca_basic.html&map=C%3A%5COSGeo4W%5Capache%5Chtdocs%5Cworkshop2%5Citasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=C%3A%5COSGeo4W%5Capache%5Chtdocs%5Cworkshop2%5C&template=itasca_basic.html

I configured my index.html to contain the following:
    <!-- EDIT THE FORM ACTION -->
    <form name="demo" method="GET" action="/cgi-bin/mapserv.exe"
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="C:\OSGeo4W\apache\htdocs\workshop2\itasca.map">
      <input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
      <input type="hidden" name="root"
value="C:\OSGeo4W\apache\htdocs\workshop2\">


My itasca.map file contains:

MAP
  NAME ITASCA
  STATUS ON
  SIZE 600 600
  EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
  UNITS METERS
  SHAPEPATH "C:/OSGeo4W/apache/htdocs/workshop2/data/"
  IMAGECOLOR 255 255 255
  TEMPLATEPATTERN "itasca"


    # change the next two lines to match your setup
    IMAGEPATH "C:\OSGeo4W\usr\tmp"
    IMAGEURL "C:\OSGeo4W\usr\"


As I say I'd really like some help on this one so I can prove to my
colleagues how useful MapServer will be.

Thanks,
James Parker


-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-Tutorial-Help-Needed-tp6056533p6056533.html
Sent from the ms4w-users mailing list archive at Nabble.com.


More information about the MS4W-Users mailing list