You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Expected Behavior
I am trying to add a remote service layer from
http://data.fao.org/maps/wms
to a GeoNode 3.0 instance.
I tested with QGIS and the same service works nicely.
Actual Behavior
I used this layer for testing:
The same layer added in GeoNode shows a legend, but no map:
If I look in the layer view and use the network inspector I can see an error for the WMS call:
The url it is trying to access is:
http://data.fao.org/maps/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=geonode%3AAQUAMAPS%3Acov03_42660&STYLES=&SRS=EPSG%3A3857&CRS=EPSG%3A3857&TILED=true&ENV=&WIDTH=256&HEIGHT=256&BBOX=0%2C-20037508.342789244%2C20037508.342789244%2C0
Decoded:
http://data.fao.org/maps/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=geonode:AQUAMAPS:cov03_42660&STYLES=&SRS=EPSG:3857&CRS=EPSG:3857&TILED=true&ENV=&WIDTH=256&HEIGHT=256&BBOX=0,-20037508.342789244,20037508.342789244,0
Opening that URL in my browser gives:
If I compare that with the WMS calls made in QGIS:
http://data.fao.org/maps/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-180,-90,180,90&CRS=EPSG:4326&WIDTH=405&HEIGHT=807&LAYERS=AQUAMAPS:cov03_42660&STYLES=&FORMAT=image/png&DPI=72&MAP_RESOLUTION=72&FORMAT_OPTIONS=dpi:72&TRANSPARENT=TRUE
You can see the key difference is that the LAYERS list has prepended the word GeoNode:
If I take the URL generated by GeoNode and simply remove the geonode suffix in the layers list, the resulting URL correctly returns an image:
Steps to Reproduce the Problem
Specifications
You can view on the running instance here:
https://sadc-gip.org/layers/httpdatafaoorgmapswms:geonode:AQUAMAPS:cov03_42660
The text was updated successfully, but these errors were encountered: