Opened 12 years ago

#764 new defect

Add WMS Preview window sends incorrect request to WMS 1.3.0 service

Reported by: jpassmore2 Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.6.5
Component: Web Map Viewer Version: v2.6.4
Keywords: WMS preview coordinates axes Cc:

Description

When clicking the link from my Transfer options to open the Interactive Map, my WMS service is shown with layers in the drop down. When I click in this list on one of the layers, nothing shows in the preview window (I see Retrieving preview image flash up) I am able to add the layer to the map.

Using Fiddler I see that the request for the preview image is like:

http://ogc.bgs.ac.uk/BGS_Bedrock_and_Superficial_Geology/ows.php?LAYERS=GBR_BGS_625k_SLS&LANGUAGE=eng&FORMAT=image%2Fpng&TRANSPARENT=TRUE&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG%3A4326&BBOX=-7.62927%2C49.8902%2C1.7645%2C60.8489&WIDTH=250&HEIGHT=250

Which returns a blank image.

The Add layer gets it correct with a request like:

http://ogc.bgs.ac.uk/BGS_Bedrock_and_Superficial_Geology/ows.php?LAYERS=UKCoShelf_BGS_1M_SBS&LANGUAGE=eng&FORMAT=image%2Fpng&TRANSPARENT=TRUE&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG%3A4326&BBOX=44.49462890625,-15.205078125,62.02880859375,10.986328125&WIDTH=596&HEIGHT=399

The issue is that the preview layer gets the EPSG:4326 coordinates in the wrong order.

A quick test of the preview layer request substituting EPSG:4326 with CRS:84 shows a valid preview image:

http://ogc.bgs.ac.uk/BGS_Bedrock_and_Superficial_Geology/ows.php?LAYERS=GBR_BGS_625k_SLS&LANGUAGE=eng&FORMAT=image%2Fpng&TRANSPARENT=TRUE&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=CRS%3A84&BBOX=-7.62927%2C49.8902%2C1.7645%2C60.8489&WIDTH=250&HEIGHT=250

Change History (0)

Note: See TracTickets for help on using tickets.