[OpenLayers-Users] redirected maprequests

Arnd Wippermann arnd.wippermann at web.de
Tue Oct 16 13:02:51 EDT 2007


Hi,
 
the problem is the encoding of the FORMAT and SRS values with OL 2.5
 
This works not:
http://milntj34.rivm.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VER
SION=1.1.1
<http://milntj34.rivm.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VE
RSION=1.1.1&FORMAT=image%2Fpng&LAYERS=1&TRANSPARENT=TRUE&SRS=EPSG%3A4326&SER
VICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&
BBOX=4.261600586485688,50.71251715540474,5.966221888212408,52.41713845713146
&WIDTH=256&HEIGHT=256>
&FORMAT=image%2Fpng&LAYERS=1&TRANSPARENT=TRUE&SRS=EPSG%3A4326&SERVICE=WMS&RE
QUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=4.2616
00586485688,50.71251715540474,5.966221888212408,52.41713845713146&WIDTH=256&
HEIGHT=256
 
Response:
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidFormat">
Invalid FORMAT value
</ServiceException>
</ServiceExceptionReport>
 
Changing the FORMAT value 

Response:
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidSRS">
Invalid SRS value
</ServiceException>
</ServiceExceptionReport>
 
Changing the SRS value 
works:
http://mapserver.mnp.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VER
SION=1.1.1
<http://mapserver.mnp.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VE
RSION=1.1.1&FORMAT=image/png&LAYERS=1&TRANSPARENT=TRUE&SRS=EPSG:4326&SERVICE
=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%252Fvnd.ogc.se_inimage&BB
OX=4.261600586485688,50.71251715540474,5.966221888212408,52.41713845713146&W
IDTH=256&HEIGHT=256>
&FORMAT=image/png&LAYERS=1&TRANSPARENT=TRUE&SRS=EPSG:4326&SERVICE=WMS&REQUES
T=GetMap&STYLES=&EXCEPTIONS=application%252Fvnd.ogc.se_inimage&BBOX=4.261600
586485688,50.71251715540474,5.966221888212408,52.41713845713146&WIDTH=256&HE
IGHT=256

With OL Version 1.0 the WMS works all right.
 
Looking at the code I don't find where the encoding takes places. Where I
have to look?

Mit freundlichen Grüssen

Arnd Wippermann
 <http://gis.ibbeck.de/ginfo/> http://gis.ibbeck.de/ginfo/




  _____  

Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von huub fleuren
Gesendet: Dienstag, 16. Oktober 2007 15:42
An: users at openlayers.org
Betreff: [OpenLayers-Users] redirected maprequests


Hi,

The capabilities of 

http://milntj34.rivm.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?req
uest=getcapabilities
<http://milntj34.rivm.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?re
quest=getcapabilities&service=wms> &service=wms 

return a OnLineResource like

  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://milntj34.rivm.nl:80/wmsconnector/com.esri.wms.Esrimap/sch
iphol2005_a?" xlink:type="simple" />

Using this we discover that this server redirects this to another server
(leaving the requests intact)

http://mapserver.mnp.nl

Compare in the browsers' addressbar

http://milntj34.rivm.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VER
SION=1.1.1
<http://milntj34.rivm.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VE
RSION=1.1.1&REQUEST=GetMap&LAYERS=11&STYLES=&SRS=EPSG:28992&TRANSPARENT=TRUE
&FORMAT=image/png&BGCOLOR=0xFFFFFF&WIDTH=466&HEIGHT=258&BBOX=93033.592275,47
1639.824034,144667.592275,500226.888412&EXCEPTIONS=application/vnd.ogc.se_xm
l&>
&REQUEST=GetMap&LAYERS=11&STYLES=&SRS=EPSG:28992&TRANSPARENT=TRUE&FORMAT=ima
ge/png&BGCOLOR=0xFFFFFF&WIDTH=466&HEIGHT=258&BBOX=93033.592275,471639.824034
,144667.592275,500226.888412&EXCEPTIONS=application/vnd.ogc.se_xml&
http://mapserver.mnp.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VER
SION=1.1.1
<http://mapserver.mnp.nl/wmsconnector/com.esri.wms.Esrimap/schiphol2005_a?VE
RSION=1.1.1&REQUEST=GetMap&LAYERS=11&STYLES=&SRS=EPSG:28992&TRANSPARENT=TRUE
&FORMAT=image/png&BGCOLOR=0xFFFFFF&WIDTH=466&HEIGHT=258&BBOX=93033.592275,47
1639.824034,144667.592275,500226.888412&EXCEPTIONS=application/vnd.ogc.se_xm
l&>
&REQUEST=GetMap&LAYERS=11&STYLES=&SRS=EPSG:28992&TRANSPARENT=TRUE&FORMAT=ima
ge/png&BGCOLOR=0xFFFFFF&WIDTH=466&HEIGHT=258&BBOX=93033.592275,471639.824034
,144667.592275,500226.888412&EXCEPTIONS=application/vnd.ogc.se_xml&

So from the capabilities  i create the OpenLayers Layer using
milntj34.rivm.nl: but then i get no image. 
Is a redirect not expected by OpenLayers? 


Regards, Huub





--  

=====================================

Geodan IT b.v.

Buitenhaven 27-A

5211 TP 's-Hertogenbosch (NL)

-------------------------------------

Tel: +31 (0)73 - 692 5151

Fax:  +31 (0)73 - 692 5150

Mobiel:

-------------------------------------

Postadres / mailing address

President Kennedylaan 1

1079 MB Amsterdam (NL)

-------------------------------------

E-mail: huub.fleuren at geodan.nl

Website: www.geodan.nl

Disclaimer: www.geodan.nl/disclaimer

-------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071016/01a54244/attachment.html


More information about the Users mailing list