WMS client/cascading wms bounding box p roblem
Eijnden, B. van den (Bart)
b.vdeijnden at AGI.RWS.MINVENW.NL
Mon May 8 02:19:26 PDT 2006
I don't know if this will solve your problem, but:
1) in your WMS request you need to use uppercase EPSG for the SRS (as
defined in the WMS spec)
2) in your PROJECTION blocks you need to use lowercase epsg (this is how
PROJ.4, the projection library used by Mapserver, expects it)
Best regards,
Bart
-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Robert William Jones
Verzonden: maandag 8 mei 2006 11:19
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] WMS client/cascading wms bounding box
problem
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&form
at=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.98000000000000
4
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.
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060508/3f7c72ba/attachment.htm>
More information about the MapServer-users
mailing list