[mapserver-users] MapServer 5.4 WMS Server VERSION=1.3.0 Problem

Yewondwossen Assefa yassefa at dmsolutions.ca
Mon May 4 09:16:04 PDT 2009


Hi,

  Do you have the full URL that is received by the server?	
  MapServer WMS 1.3.0 supports the following EXCEPTIONS : XML, INIMAGE, 
or BLANK.
  Is might be  possible to add  EXCEPTIONS: "XML" (or INIMAGE, or BLANK) 
   when building your OL wms 1.3.0 layer?

  Best Regards,

Ben Madin wrote:
> G'day all,
> 
> I'm a little new to WMS, but I confess the GetLegendGraphic feature 
> available now in the 5.4 release caught my eye.
> 
> So I'm 5.4.0 and using OpenLayers 2.7. However, when I use the URL :
> 
> /cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&SRS=EPSG:4326& 
> 
> 
> I get the following message (embedded in the tile) :
> 
> msWMSLoadGetMapParams(): WMS server error. Invalid format for the 
> EXCEPTION parameter.
> 
> If I drop the VERSION (either back to 1.1.1 or just completely loose it, 
> text below in the context of the OL script.
> 
> var pol_bnd = new OpenLayers.Layer.WMS(
>     'Countries',
>     'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&', 
> 
>                 {layers: 'countries'}
>             );
> map.addLayer(pol_bnd);
> 
> I get my maps.
> 
> I can work with this for now, but is there something I'm missing. I did 
> try fiddling with the reported CRS / SRS changes, but I think I just 
> confused myself - but that would be another topic!
> 
> Perhaps along with the mapfile in the documentation, a copy of a full 
> example of a request url would be great.
> 
> Some of the mapfile is attached for completeness (it has been sucked 
> across from a CGI Mapserv application):
> 
> --------------------------
> 
> MAP
>     NAME        aus_boundaries
>     STATUS        ON
>     UNITS        DD
>     EXTENT      110 -35 130 -12 #  WA extents
>     SIZE        900 650
>     SHAPEPATH   "../geodata/"
>     FONTSET     "../geodata/fonts/fonts.lst"
>     SYMBOLSET   "../trade.sym"
>     IMAGECOLOR  230 240 255
>     CONFIG "MS_ERRORFILE" "/var/log/mserr.log"
>     DEBUG 5
> 
>     PROJECTION
>         "init=epsg:4326"
>     END
> 
>     WEB
>         METADATA
>             "wms_title"           "GMS Livestock Trade"
>             "wms_onlineresource"  
> "http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/ol_countries_wms.map&" 
> 
>             "wms_srs"             "EPSG:4326"
>         END
>         IMAGEPATH   "../../tmp/"
>         IMAGEURL    "../../tmp/"
>     END
> 
> 
>     LAYER
>         METADATA
>             "wms_title" "Country Boundaries"
>             "wms_srs"    "EPSG:4326"
>             "wms_group_title" "Political"
>         END
>         STATUS    ON
>         NAME    "countries"
>         GROUP    "Political"
>         DATA    "global/ctybnda"
>         TYPE    polygon
>         OPACITY 100
>         CLASS
>             NAME    "Country Borders"
>             COLOR    240 240 180
>             OUTLINECOLOR 0 70 0
>         END
>     END
> 
> ----------------------------
> 
> cheers
> 
> Ben
> 
> 
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the MapServer-users mailing list