[Mapserver-users] MS wont generate maps!

Thomas Bartlett tbartlett at dddd.com.au
Sun Apr 4 18:38:31 PDT 2004


Hi All,

Can anyone please help I'm pulling my hair out here !!!

I have been developing a Mapserver Application on an XP machine... And
everything has been going great,  BUT  I am trying to migrate across to
a Windows 2000 Advanced Server machine !

Both machines are running IIS 5.0

I have set everything up in the same directories... But no matter what I
do I cant get MapServer to generate images?   I have put a LOG reference
in the .map file but the file is not created, or if I create it nothing
is added to it!

MapServer is working.... Because when I have errors in my map file or in
the url... Errors are returned.   When I submit a properly formatted
url, the template document is return with broken links for the images
(ref, legend,scalebar and img).   These link are where the images should
be.... But no images are created !!

I know I'm missing something simple... I just don't know what !!

I have tried setting IMAGEPATH and IMAGEURL in the .map file or setting
MAP_WEB_IMAGEURL and MAP_WEB_IMAGEPATH nothing seems to works


PLEASE HELP !!

Many Thanks
Tom Bartlett


------------------------------------------------------------------------
------------------

#
# Start of map file
#

MAP
  NAME UXO
  STATUS ON
  SIZE 600 600
  EXTENT 140 -26.50 154 -40
  UNITS DD
  SHAPEPATH "C:\MapServer_Data\"
  IMAGECOLOR 255 255 255
  TEMPLATEPATTERN "UXO_Basic"

  IMAGETYPE PNG

  #
  # Start of symbol definitions (we're only using a few)
  #
  SYMBOL
    NAME 'circle'
    TYPE ELLIPSE
    POINTS 1 1 END
    FILLED TRUE
  END

  #
  # Start of web interface definition (including WMS enabling metadata)
  #
  WEB
    HEADER templates/header.html
    TEMPLATE "set in /index.html"
    FOOTER templates/footer.html    
    MINSCALE 1000
    MAXSCALE 10000000
    IMAGEPATH "set in /index.html"
    IMAGEURL "set in /index.html"
    LOG UXO_Mapserver
    METADATA
      WMS_TITLE "UMN MapServer Itasca Demo"
      WMS_ABSTRACT "This is a UMN MapServer application for Itasca
County located in north central Minnesota."
      WMS_ACCESSCONSTRAINTS none

      # change this value to match your setup
      WMS_ONLINERESOURCE "http://localhost/UXO/index.html"

      WMS_SRS "EPSG:26915"
    END
  END

  #
  # Start of reference map
  #
  REFERENCE
    IMAGE graphics/aust_ref.png
    EXTENT 111.33 -7.87 156.12 -46.84 
    SIZE 150 133
    STATUS ON
    MINBOXSIZE 5
    #MAXBOXSIZE 120
    OUTLINECOLOR 255 255 255
    MARKERSIZE 9
    MARKER 'star'
  END

  #
  # Start of legend
  #
  LEGEND
    KEYSIZE 18 12
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89
    END
    STATUS ON
  END

  #
  # Start of scalebar
  #
  SCALEBAR
    IMAGECOLOR 0 0 0
    LABEL
      COLOR 255 255 255
      SIZE TINY
    END
    STYLE 1
    SIZE 400 2
    COLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 5
    TRANSPARENT TRUE
    STATUS ON
  END
  
  QUERYMAP
    SIZE 250 250
    STYLE HILITE
    COLOR 255 255 0
    STATUS ON
  END

  #
  # Start of layer definitions
  #

LAYER
  NAME GMA_BUILTUPA
  TYPE POLYGON
  STATUS OFF
  DATA GMA_1m/QLD/builtupa_qld

  MAXSCALE 10000000
  MINSCALE 250000

  CLASS
    NAME 'Built-up Area'
    STYLE
      COLOR 255 190 190
    END
  END

  TOLERANCE 3

END # GMA_BUILTUPA

END # Map File


------------------------------------------------------------------
<html>
  <head>
    <title>MapServer Itasca Application</title>
  </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="/mapserv40/mapserv.exe">

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

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

      <!-- EDIT THESE HIDDEN VARIABLES -->
      <input type="hidden" name="map"
value="C:\Inetpub\wwwroot\UXO\UXO_custom.map">
      <input type="hidden" name="program"
value="/mapserv40/mapserv.exe">
      <input type="hidden" name="root" value="/UXO/">
      <input type="hidden" name="map_web_imagepath"
value="C:\Inetpub\wwwroot\tmp\">
      <input type="hidden" name="map_web_imageurl" value="\UXO\tmp\">
      <input type="hidden" name="map_web_template"
value="UXO_Basic.html">

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

    <p><hr><p>
  </body>
</html>




More information about the MapServer-users mailing list