Problems with 4.0 tutorial on XP

Todd Birkenholtz toddbirkey at YAHOO.COM
Fri Oct 22 11:09:22 EDT 2004


I am new to Mapserver and the concept of GIS in
general.
I think I followed the install procedure and checked
the FAQ but must have overlooked something.

Here is my setup..
Windows XP with IIS
Installed ms42pg.zip (Mapserver Windows Binary Build)

My IIS folders
C:\Inetpub\tmp\ Temp folder
C:\Inetpub\wwwroot\tutorial\    tutorial location
C:\Inetpub\wwwroot\tutorial\data        data folder
C:\Inetpub\scripts\mapserver.exe and mapserv.exe

URL
http://localhost/tutorial/
http://localhost/tmp/   temp folder
http://localhost/scripts/mapserv.exe  or mapserver.exe


When I go to http://localhost/scripts/mapserv.exe  I
get the correct result of

No query information to decode. QUERY_STRING not set.


I installed the MapServer Itasca demo and as far as I
can tell it is working.
I get an image and PNG files are placed in my tmp
folder.


Here is my problem..

I can not get the 4.0 Tutorial to work.
I edited my example1-1.html image src to point to my
mapfile
src="/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=map"
>

The image url generated by example1-1.html is
http://localhost/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=map


Here is my edited mapfile
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
MAP
  IMAGETYPE      PNG
  EXTENT         201621.496941 -294488.285333
1425518.020722 498254.511514
  SIZE           400 300
  SHAPEPATH      "C:\Inetpub\wwwroot\tutorial\data"
  DEBUG on
  IMAGECOLOR     255 255 255

  PROJECTION
    "proj=laea"
    "ellps=clrk66"
    "lat_0=45"
    "lon_0=-100"
  #
  # Alternatively, you can specify an EPSG code.
  # "init=epsg:2163"
  #
  END

  # Start of LAYER DEFINITIONS
---------------------------------------------
  LAYER # States polygon layer begins here
    NAME         states
    DATA         states_ugl
    STATUS       DEFAULT
    TYPE         POLYGON

    PROJECTION
      "init=epsg:4326"
    END

    CLASS
      COLOR        232 232 232
      OUTLINECOLOR 32 32 32
    END
  END # States polygon layer ends here
  # End of LAYER DEFINITIONS
-------------------------------

END # end of map file/object
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


When I access example1-1html
I get the HTML tutorial but only a small box with a
red x in it where the image was to be.

When I go the URL


http://localhost/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=map


I get this error message

CGI Error

The specified CGI application misbehaved by not
returning a complete set of HTTP headers. The headers
it did return are:
‰PNG


I am sure I forgot to install something or overlooked
something clearly in some documentation but I have
been struggling with this for several day’s

Can anybody help.


Thank You

Todd Birkenholtz



__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail



More information about the mapserver-users mailing list