[mapserver-users] WMS don't load

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Wed Oct 8 06:20:35 PDT 2008


Thanks Daniel,
Here is the definition of the layer in my mapFile
LAYER
   NAME         pe
   TYPE         RASTER
   OFFSITE      0 0 0
   STATUS       default
   CONNECTIONTYPE WMS
   CONNECTION "http://atlas.gc.ca/cgi-bin/atlaswms_fr?"
   DEBUG 5

    METADATA
      "wms_srs" "EPSG:42304"
      "wms_name" "pe_15m"
      "wms_server_version" "1.1.1"
      "wms_format" "image/gif"
    END
  END # layer pe

Here is the log
[Wed Oct 08 09:00:10 2008].480000 HTTP: Starting to prepare HTTP requests.
[Wed Oct 08 09:00:10 2008].480000 HTTP request: id=0, 
http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage
[Wed Oct 08 09:00:10 2008].496000 HTTP: Before download loop
[Wed Oct 08 09:00:10 2008].667000 HTTP: After download loop
[Wed Oct 08 09:00:10 2008].667000 msHTTPExecuteRequests() timing summary 
per layer (connect_time + time_to_first_packet + download_time = 
total_time in seconds)
[Wed Oct 08 09:00:10 2008].667000 HTTP: request failed with curl error 
code 6 () for 
http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage[Wed 
Oct 08 09:00:10 2008].667000 msHTTPExecuteRequests(): HTTP request error. 
HTTP: request failed with curl error code 6 () for 
http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage
[Wed Oct 08 09:00:10 2008].667000 Layer 0: 0.000 + 0.000 + 0.000 = 0.000s
[Wed Oct 08 09:00:10 2008].667000 msDrawWMSLayerLow(): WMS server error. 
WMS GetMap request failed for layer 'pe' (Status -6: ).
[Wed Oct 08 09:00:10 2008].667000 msDrawMap(): Layer 0 (pe), 0.000s

I get a blank image. But if I use the connection string that is in the log 
file and send it directly from internet explorer I get the image.
http://atlas.gc.ca/cgi-bin/atlaswms_fr?LAYERS=pe_15m&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/gif&STYLES=&HEIGHT=300&VERSION=1.1.1&SRS=EPSG:42304&WIDTH=400&BBOX=689899.721196215,-333292.3983286,2867511.32395514,2047197.11324934&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage


I also tried with this layer definiton, and I got the same error
LAYER
  NAME "prov_bound"
  TYPE RASTER
  STATUS ON
  CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
  CONNECTIONTYPE WMS
  METADATA
    "wms_srs"             "EPSG:42304"
    "wms_name"            "prov_bound"
    "wms_server_version"  "1.1.1"
    "wms_format"          "image/gif"
  END
END

thanks for your help,
Steve


Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3 
Tél.: (418) 650-5115 #5281
Fax.: (418) 654-3144
steve.toutant at inspq.qc.ca
http://www.inspq.qc.ca
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081008/2bf9ace3/attachment.htm>


More information about the MapServer-users mailing list