Need some help on WMS server.

Fawcett, David David.Fawcett at STATE.MN.US
Mon Oct 10 11:15:01 PDT 2005


Paul, 

I am guessing that you are getting the same image every time because you
have all three layers STATUS set to default.  Therefore, however you
request it, all three layers are drawing and the last one in your map
file is being drawn on top.  

I would suggest setting the layers STATUS to ON, and then using the
layers parameter in your GetMap request to select the layer that you are
interested in.  

David.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Paul Turner
Sent: Monday, October 10, 2005 11:36 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Need some help on WMS server.


I'm bringing up a WMS server and I'm having problems serving different 
images from the same map file. It looks like only the last image of the 
3 is being served.

The server is at

http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserve
r/wms.map

There are 3 images served, one per layer, and each is different (I've 
verified this) but it seems that in every WMS client I use, the same 
image shows up no matter which layer I select (the last image).

Any suggestions appreciated.

Thx,

--Paul

Paul J Turner
OHSU-OGI-CCALMR

mapserver CGI is configured thusly:

/usr/local/apache/cgi-bin) mapserv -v
MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
INPUT=SHAPEFILE

Here is the map file:

MAP
   NAME "CORIE Dev Forecast"
   DEBUG ON
#   SIZE 550 450
#   IMAGETYPE GIF
   UNITS DD
   EXTENT -125.300000 45.300000 -122.844754 47.299633
   WEB
      LOG "/tmp/mapserver.log"
      IMAGEPATH "/usr/local/apache/htdocs/ms/tmp"
      IMAGEURL "/ms/tmp/"
      METADATA
        "wms_title"  "CORIE WMS Service"
        "wms_onlineresource" 
"http://www.ccalmr.ogi.edu/cgi-bin/mapserv?map=/usr/local/apache/mapserv
er/wms.map&"   
##required
        "wms_srs"   "epsg:4326"
        "wms_format" "image/gif"
      END
    END
    PROJECTION
       "init=epsg:4326"
    END

  LAYER
    NAME "devforecast1"
    STATUS DEFAULT
    DUMP TRUE
    METADATA
    "wms_title"    "DevForecast 1"  ##required
    "wms_format" "image/gif"
    "gml_include_items" "all"
    END
    TYPE RASTER
    DATA
"/usr/local/apache/mapserver/llcolsal_plume_surface_000090000.gif"
    PROJECTION
    "init=epsg:4326"   ##recommended
    END
  END

  LAYER
    NAME "devforecast2"
    STATUS DEFAULT
    DUMP TRUE
    METADATA
    "wms_title"    "DevForecast 2"  ##required
    "wms_format" "image/gif"
    "gml_include_items" "all"
    END
    TYPE RASTER
    DATA
"/usr/local/apache/mapserver/llcolsal_plume_surface_000093600.gif"
    PROJECTION
    "init=epsg:4326"   ##recommended
    END
  END

  LAYER
    NAME "devforecast3"
    STATUS DEFAULT
    DUMP TRUE
    METADATA
    "wms_title"    "DevForecast 3"  ##required
    "wms_format" "image/gif"
    "gml_include_items" "all"
    END
    TYPE RASTER
    DATA
"/usr/local/apache/mapserver/llcolsal_plume_surface_000097200.gif"
    PROJECTION
    "init=epsg:4326"   ##recommended
    END
  END
END

The images can be seen at (warning, 2048x2048):

http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000090000.gif
http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000093600.gif
http://www.ccalmr.ogi.edu/ms/llcolsal_plume_surface_000097200.gif



More information about the MapServer-users mailing list