[mapserver-users] WMS don't load

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Oct 1 00:11:02 PDT 2008


I agree with Jukka in that the layer is not properly defined (see 
section 3.2 of the wms client howto for an example layer).  (this is not 
an ms4w-specific problem)


-- 
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


Rahkonen Jukka wrote:
> Hi,
> 
> Is either of your servers behind a proxy?
> 
> Another thing, your connection string is not correct and I am surprised that one server is working.  I suggest you to follow the instructions of document http://mapserver.gis.umn.edu/docs/howto/wms_client.
> 
> Your connection is of very old format and there is no need to use that.  Use the current format as described in the document above. Especially you don't for sure need request=GetMap, BBOX, WIDTH and HEIGHT here.  Version, SRS, LAYERS and FORMAT are meant to be captured from metadata section when using the new format. PROJECTION is unnecessary for cascaded WMS layers but it should not harm if it is correct, like you seem to have. Take it away still.
> wms_name in metadata should obviously be "pe_15m".
> wms_format should be "image/gif"
> 
> Correcting these should bring you at least closer to a working connection.
> 
> -Jukka Rahkonen-
> 
> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Steve.Toutant at inspq.qc.ca
> Lähetetty: ti 30.9.2008 19:57
> Vastaanottaja: Steve Lime
> Kopio: mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org
> Aihe: Re: [mapserver-users] WMS don't load
>  
> Version 5.0.0 on the server that works well
> Version 5.2.0 on the server where WMS don't load
> 
> 
> Also, If I call the WMS directly from internet explorer with
> http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF
> 
> it works on both servers so I guess it is not a network problem.
> Here is the layer part of my mapfile:
>   LAYER # pe WMS map from geoConnexion
>     NAME         pe
>     TYPE         RASTER
>     OFFSITE      0 0 0
>     STATUS       default
>     CONNECTIONTYPE WMS
>     CONNECTION 
> "http://atlas.gc.ca/cgi-bin/atlaswms_fr?VERSION=1.1.1&request=GetMap&SRS=EPSG:42304&BBOX=-2750564.75,-936638.5,3583872.5,4673125&WIDTH=400&HEIGHT=300&LAYERS=pe_15m&STYLES=&FORMAT=GIF"
>  
>    # METADATA
>    #   "wms_srs" "EPSG:42304"
>    #   "wms_name" "pe"
>    #   "wms_server_version" "1.1.1"
>    #   "wms_format" "gif"
>    # END
> 
>     PROJECTION
>       "init=epsg:42304"
>     END
>   END # pe WMS image ends here
> 
> 
> I tried with the METADATA statement unmarked as well
> thanks,
> Steve





More information about the MapServer-users mailing list