Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote service layers not rendering #6132

Closed
timlinux opened this issue May 28, 2020 · 3 comments
Closed

Remote service layers not rendering #6132

timlinux opened this issue May 28, 2020 · 3 comments
Labels
minor A low priority issue which might affect only some users and /or not the main functionality wontfix Stale Bot: Stale issue

Comments

@timlinux
Copy link
Contributor

timlinux commented May 28, 2020

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.

image

Actual Behavior

I used this layer for testing:

crs=EPSG:4326&dpiMode=7&format=image/png&layers=AQUAMAPS:cov03_42660&styles&url=http://data.fao.org/maps/wms

The same layer added in GeoNode shows a legend, but no map:

image

If I look in the layer view and use the network inspector I can see an error for the WMS call:

image

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:

image

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:

Client Layers
GeoNode Call LAYERS=geonode:AQUAMAPS:cov03_42660
QGIS Call LAYERS=AQUAMAPS:cov03_42660

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:

image

Steps to Reproduce the Problem

  1. Add the WMS resource http://data.fao.org/maps/wms
  2. Add the First AQUAMAPS layer that appears in the list
  3. Open the layer view and the map is not shown

Specifications

  • GeoNode version: 3,0
  • Installation method: SPCGeoNode Docker
  • Platform: Ubuntu 20.4
  • Additional details:

You can view on the running instance here:

https://sadc-gip.org/layers/httpdatafaoorgmapswms:geonode:AQUAMAPS:cov03_42660

@t-book t-book added the minor A low priority issue which might affect only some users and /or not the main functionality label May 28, 2020
@t-book
Copy link
Contributor

t-book commented May 28, 2020

might be connected to: #5512

@afabiani
Copy link
Member

afabiani commented Jul 6, 2020

WARNING: The fix is available on GeoNode 3.1 only

Fixed through 04d1055

image

@stale
Copy link

stale bot commented Sep 4, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor A low priority issue which might affect only some users and /or not the main functionality wontfix Stale Bot: Stale issue
Projects
None yet
Development

No branches or pull requests

3 participants