[OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs 2.2

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Wed May 9 01:43:52 EDT 2007


Chris,

are you sure about this?

If I read 

http://trac.openlayers.org/ticket/491 

then commas in the following parameters should not be urlencoded:

-BBOX
-LAYERS
-STYLES

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Christopher Schmidt <crschmidt at metacarta.com>
Naar: Nick Whitelegg <nick at hogweed.org>
Cc: users at openlayers.org
Onderwerp: Re: [OpenLayers-Users] Strange bug (?) in OpenLayers 2.4rc3 vs
2.2
Datum: 08/05/07 18:46

> On Tue, May 08, 2007 at 08:51:36PM +0100, Nick Whitelegg wrote:
> &gt; Hello everyone,
> &gt; 
> &gt; I'm getting a strange effect if I use a Mercator projection WMS
server with a 
> &gt; bounding box which can take negative values in 2.4rc3 or the SVN
version, 
> &gt; which I didn't get in 2.2.
> &gt; 
> &gt; Looking at the URL constructed to get the tiles, it appears to be
URL-encoding 
> &gt; the commas which messes up the bbox.
> &gt; 
> &gt; i.e. the URL I get for the tiles in 2.4-rc3 is something like:
> &gt; 
> &gt;
http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000%2C6595000%2C-75000%2C6600000
> &gt; &amp;WIDTH=500&amp;HEIGHT=500
> &gt; 
> &gt; rather than in 2.2:
> &gt; 
> &gt;
http://www.free-map.org.uk/cgi-bin/render?BBOX=-80000,6595000,-75000,6600000
> &gt; &amp;WIDTH=500&amp;HEIGHT=500
> 
> &gt; Is this a bug or am I doing something wrong?
> 
> This is a change, but not a bug. In general, I'd expect that your server
> code would take care of converting this for you. I'm really surprised
> that it doesn't. (What are you using for CGI?)
> 
> In any case, this is meeting the WMS spec more closely. Before, we were
> breaking some WMS servers -- in this case, we've broken your WMS-ish
> server, but we were both breaking the spec before, and now OpenLayers is
> in the right ;)
> 
> If it's difficult to work around this in your server-side code, let me
> know, and I'll come up with a hack you can apply to make OpenLayers stop
> doing this on your page.
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 






More information about the Users mailing list