Hi,

I am trying to use MapServer as a WMS client to another WMS (cascading WMS). The request I make is of the form:
http://localhost/cgi-bin/mapserv_44.exe?map=midas.map&version=1.1.1&request=getmap&layers=gs_lay&width=500&height=250&srs=epsg:4326&bbox=0,45,40,65&format=image/png

However, MapServer seems to do something strange to the bounding box as the box that is submitted by MapServer (as part of the getmap request) is the following:
0.039999999999997732,45.019999999999996,39.960000000000001,64.980000000000004

My map file is set up as follows:

MAP
  STATUS ON
  SIZE 500 250
  EXTENT 0 45 40 65
  SHAPEPATH "./data"
  IMAGECOLOR 0 0 255
  PROJECTION
      "init=EPSG:4326"
  END
    WEB
      IMAGEPATH "/ms4w/tmp/ms_tmp/"
      IMAGEURL "/ms_tmp/"
  END
    OUTPUTFORMAT
      NAME png
      DRIVER "GD/PNG"
      MIMETYPE "image/png"
      IMAGEMODE RGBA
      EXTENSION "png"
  END
    LAYER
      NAME "gs_lay"
      TYPE RASTER
      STATUS ON
      CONNECTION "http://localhost:8080/geoserver/wms?";
      CONNECTIONTYPE WMS
      METADATA
          "wms_srs"             "EPSG:4326"
          "wms_name"            "topp:gfs"
          "wms_server_version"  "1.1.1"
          "wms_format"          "image/png"
          "wms_latlonboundingbox" "0 45 40 65"
      END
  END
END


Does anyone know why the bounding box is being changed, instead of being submitted as is?

Many thanks for any help
Robert Jones


Robert William Jones
Software Engineer

ComSine Limited
Telephone:  + 44 (0) 1483 457121
Fax:  + 44 (0) 1483 304836
Mobile: +44 (0) 7939 295868
www.comsine.com

*Please Note:*
This text is confidential. If you are not the named addressee, it could
be unlawful for you to read, copy, distribute, disclose or use the
information contained herewith. If you are not the intended recipient
please telephone +44 (0) 1483 457121.

Reply via email to