[Tilecache] WMS (il)legal URLS
crschmidt at metacarta.com
Thu Jan 17 20:39:09 EST 2008
On Thu, Jan 17, 2008 at 01:40:14PM -0800, Paul Ramsey wrote:
> Did you know that in order to create legal WMS client URLs you have to
> contravene the usual rules of URL construction? I bet you didn't.
You'd be wrong: I did. We've bumped into it a number of times with
OpenLayers (and it still doesn't do the right thing -- though I'll admit
I'm not really in a position where I consider it particularly
> Tilecache generates this URL
> Based on this configuration
> The "rules" of WMS client URL construction say that you don't encode
> the tokenizing characters (& = ?), just like normal, but there are
> also some special characters that you don't encode when they are used
> relative to particular parameters:
> / Separator between MIME type and subtype in format parameter value.
> : Separator between Namespace and Identifier in SRS parameter value.
> , Separator between individual values in list-oriented parameters.
> Whoa! Crazyness! But that's the way the spec is written.
> So the ":" in the SRS, shouldn't be encoded.
> Nor should the "/" in the format.
> And note that the "," in the layers and bbox parameters should not be
> encoded WHEN THEY ARE SEPARATORS. This presumably allows european use
> of the comma as a decimal, and the use of commas in layer names, while
> still using commas as separators.
> This is an issue for strict servers, like the one cited above.
Yep. Shouldn't be too hard for someone to write a patch: I'll take it
when I get one (and keep it in mind to fix at some point).
More information about the Tilecache