question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help visualizing WMS layer

See original GitHub issue

I am trying to render the following WMS layer into ipyleafle, but I can get it to workt:

from owslib.wms import WebMapService
wms_url = 'http://nbstds.met.no/thredds/wms/NBS/S3A/2019/09/27/OLCI/S3A_OL_1_EFR____20190927T095206_20190927T095506_20190927T114949_0180_049_350_1800_LN1_O_NR_002.nc?'
wms = WebMapService(wms_url, version='1.3.0')

wms_layers = list(wms.contents)
"""
wms_layers
['Oa01_radiance',
 'Oa02_radiance',
 'Oa03_radiance',
 'Oa04_radiance',
 'Oa05_radiance',
 'Oa06_radiance',
 'Oa07_radiance',
 'Oa08_radiance',
 'Oa09_radiance',
 'Oa10_radiance',
 'Oa11_radiance',
 'Oa12_radiance',
 'Oa13_radiance',
 'Oa14_radiance',
 'Oa15_radiance',
 'Oa16_radiance',
 'Oa17_radiance',
 'Oa18_radiance',
 'Oa19_radiance',
 'Oa20_radiance',
 'Oa21_radiance',
 'altitude',
 'quality_flags'
"""

wms['Oa01_radiance'].crsOptions

"""
['EPSG:900913',
 'CRS:84',
 'EPSG:3408',
 'EPSG:27700',
 'EPSG:32661',
 'EPSG:32761',
 'EPSG:3409',
 'EPSG:3857',
 'EPSG:41001',
 'EPSG:4326']
"""

wms_layer = WMSLayer(url=wms_url, layers=wms_layers[21], format='image/png')

m = ipyleaflet.Map(zoom=5, center=(66, 8))
m.add_layer(wms_layer)
m

The wms loads correctly in GIS (e.g.: QGIS) this its GetCapabilities

I tried settings several options like CRS - with no luck. Do you have any advice on how to render one of its layer?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davidbrochartcommented, Nov 23, 2020

Should we close this issue?

0reactions
davidbrochartcommented, Dec 1, 2020

Indeed, this would be on the LeafletJS side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using WMS service layers—Help | Documentation
Right-click the WMS service layer in the table of contents and click Properties. · Click the Layers tab. · Click Just the layers...
Read more >
How to add a WMS layer to your project - YouTube
Selected web map services ( WMS ) layers are provided as georeferenced map images to assist with visualisation of models.
Read more >
Add and visualize web map service (WMS) layers - Geokov
Add web map service ( WMS ) data layers from different sources and create a mashup with Geokov map maker. Geokov - http://geokov.com, ......
Read more >
Correct parameters to visualize WMS layers in Leaflet and ...
I have QGIS installed, and I can successfully add the layers into a QGIS project and visualize them by doing "Layer -> Add...
Read more >
Choosing the best model to visualize WMS data in LuciadRIA
You have two options for visualizing Web Map Service (WMS) data in LuciadRIA: you can either visualize it as tiled data or as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found