[OpenLayers-Users] Problems with WMS server

Ian Turton ijturton at gmail.com
Fri Jul 17 11:51:03 EDT 2009


On Fri, Jul 17, 2009 at 11:35 AM, Camilo Vargas<cavargasru at gmail.com> wrote:
> Hello;
>
> I'm trying to acces a WMS which doesn't support format: image/jpeg with the
> followin javascript
...
>
> http://server/?LAYERS=OLA_Color&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-90,0,0,90&WIDTH=256&HEIGHT=256
>
> When I tried this in a browser (IE and Mozilla Firefox) the server give me
> an error related with the format which i'm asking for. So I change the url
> in the browser for this one:
>
> http://server/?LAYERS=OLA_Color&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-90,-90,0,0&WIDTH=256&HEIGHT=256
>
> And I got the image. Basically, from this I concluded that the problem is
> with the "%2F" generated by openlayers instead of the "/" and the same with
> the "%3A" instead of ":".
>

You need to fix your WMS as it is required by the standard to support
encoded URLs (AFAIR)

Ian



More information about the Users mailing list