pygmt icon indicating copy to clipboard operation
pygmt copied to clipboard

Feature request: add support for WMS and WMTS

Open rhkarls opened this issue 1 year ago • 4 comments

Description of the desired feature

This is a feature request to add support for plotting WMS and WMTS map data, similar to the already supported for XYZ tiles.

Perhaps OWSLib could be used to enable this?

The GMT.jl Julia package supports WMS as well.

Are you willing to help implement and maintain this feature?

Maybe (skill and knowledge might be a limiting factor)

Also see

https://forum.generic-mapping-tools.org/t/using-wms-or-wmts-source-with-pygmt/4786

rhkarls avatar Apr 11 '24 12:04 rhkarls

👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.

welcome[bot] avatar Apr 11 '24 12:04 welcome[bot]

These services are out of my knowledge. What do you say @weiji14?

seisman avatar May 19 '24 08:05 seisman

I'd prefer it if we could get WMS/WMTS integration working through the current fig.tilemap interface. There seems to be some interest at https://github.com/geopandas/xyzservices/issues/49#issuecomment-891856934 (xyzservices is a dependency of contextily, used by fig.tilemap), so it might be possible to get this working out of the box if upstream supports it.

One thing to note with WMS/WMTS is that there are more variations in terms of projection systems, so it can be a little trickier to integrate with, compared to XYZ tilemaps which are typically only EPSG:3857. That said @rhkarls, you are welcome to try and get a high-level function working.

weiji14 avatar May 20 '24 23:05 weiji14

This might be a good reference on what an API for plotting WMS layers could look like - https://eomaps.readthedocs.io/en/v8.2.1/api_webmaps.html

weiji14 avatar Jun 15 '24 01:06 weiji14