Skip to content

Fix CRS support on WMS Facade#2302

Merged
tomkralidis merged 2 commits intogeopython:masterfrom
doublebyte1:maps-crs
Mar 26, 2026
Merged

Fix CRS support on WMS Facade#2302
tomkralidis merged 2 commits intogeopython:masterfrom
doublebyte1:maps-crs

Conversation

@doublebyte1
Copy link
Copy Markdown
Contributor

@doublebyte1 doublebyte1 commented Mar 26, 2026

Overview

Related Issue / discussion

#2301

Additional information

This PR enables support to WebMercator crs in the WMS Facade provider. It also enables users to express crs in a number of different ways, other than the uri; although this is not in the Standard, it is provided as a matter of convenience.

The related docs are also updated to reflect this. I will add unit tests on a separate PR.

With this update, we can send a request for WGS84:
http://localhost:5000/collections/mapserver_world_map/map?crs=EPSG:4326&f=png&bbox=-20037508.34,-20037508.34,20037508.34,20037508.34&bbox-crs=3857

Screenshot from 2026-03-26 16-20-17

And get a different map from a request for WebMercator:
http://localhost:5000/collections/mapserver_world_map/map?crs=EPSG:3857&f=png&bbox=-20037508.34,-20037508.34,20037508.34,20037508.34&bbox-crs=3857

Screenshot from 2026-03-26 16-20-28

Some things to take into consideration for the future:

  • Adding support for any crs (not easy, because the crs_transform functions and the WMS provider take the crs in different formats).
  • Review the MapScript provider to ensure the behaviour is uniform.

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

@tomkralidis tomkralidis added this to the 0.24.0 milestone Mar 26, 2026
@tomkralidis tomkralidis added the OGC API - Maps OGC API - Maps label Mar 26, 2026
@tomkralidis tomkralidis merged commit 72abbb1 into geopython:master Mar 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OGC API - Maps OGC API - Maps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants