<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.24">
<TITLE>RE: [UMN_MAPSERVER-USERS] WMS client/cascading wms bounding box problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>I don't know if this will solve your problem, but:</FONT>
</P>

<P><FONT SIZE=2>1) in your WMS request you need to use uppercase EPSG for the SRS (as defined in the WMS spec)</FONT>
<BR><FONT SIZE=2>2) in your PROJECTION blocks you need to use lowercase epsg (this is how PROJ.4, the projection library used by Mapserver, expects it)</FONT></P>

<P><FONT SIZE=2>Best regards,</FONT>
<BR><FONT SIZE=2>Bart</FONT>
</P>

<P><FONT SIZE=2>-----Oorspronkelijk bericht-----</FONT>
<BR><FONT SIZE=2>Van: UMN MapServer Users List</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">mailto:MAPSERVER-USERS@LISTS.UMN.EDU</A>]Namens Robert William Jones</FONT>
<BR><FONT SIZE=2>Verzonden: maandag 8 mei 2006 11:19</FONT>
<BR><FONT SIZE=2>Aan: MAPSERVER-USERS@LISTS.UMN.EDU</FONT>
<BR><FONT SIZE=2>Onderwerp: [UMN_MAPSERVER-USERS] WMS client/cascading wms bounding box</FONT>
<BR><FONT SIZE=2>problem</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi,</FONT>
</P>
<BR>

<P><FONT SIZE=2>I am trying to use MapServer as a WMS client to another WMS (cascading WMS). </FONT>
<BR><FONT SIZE=2>&nbsp; The request I make is of the form:</FONT>
<BR><FONT SIZE=2><A HREF="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" TARGET="_blank">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</A></FONT></P>

<P><FONT SIZE=2>However, MapServer seems to do something strange to the bounding box as the </FONT>
<BR><FONT SIZE=2>box that is submitted by MapServer (as part of the getmap request) is the </FONT>
<BR><FONT SIZE=2>following:</FONT>
<BR><FONT SIZE=2>0.039999999999997732,45.019999999999996,39.960000000000001,64.980000000000004</FONT>
</P>

<P><FONT SIZE=2>My map file is set up as follows:</FONT>
</P>

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

<P><FONT SIZE=2>Does anyone know why the bounding box is being changed, instead of being </FONT>
<BR><FONT SIZE=2>submitted as is?</FONT>
</P>

<P><FONT SIZE=2>Many thanks for any help</FONT>
<BR><FONT SIZE=2>Robert Jones</FONT>
</P>
<BR>

<P><FONT SIZE=2>Robert William Jones</FONT>
<BR><FONT SIZE=2>Software Engineer</FONT>
</P>

<P><FONT SIZE=2>ComSine Limited</FONT>
<BR><FONT SIZE=2>Telephone:&nbsp; + 44 (0) 1483 457121</FONT>
<BR><FONT SIZE=2>Fax:&nbsp; + 44 (0) 1483 304836</FONT>
<BR><FONT SIZE=2>Mobile: +44 (0) 7939 295868</FONT>
<BR><FONT SIZE=2>www.comsine.com</FONT>
</P>

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

<BR>


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.
************************************************************************

<BR>
</BODY>
</HTML>