Skip to content

OGC API - Maps ignoring the crs parameter #2301

@doublebyte1

Description

@doublebyte1

Description
pygeoapi is not respecting the crs parameter for OGC API - Maps.

According to the spec, this parameter should be expressed as an uri, and would enable requesting a map in a given crs.

In the source code there seems to be an intention to support WGS84 and WebMercator, and to support other formats than uris, but the code on maps.py and wms_facade.py is not letting that happen. The result is that the crs is always defaulting to WGS84.

Steps to Reproduce

Expected behavior
The first and second maps should be different. Instead, we are always given a map in WGS84.

Screenshots/Tracebacks

WGS84 request:

Image

Web Mercator request:

Image

Environment

  • OS: Ubuntu 24.04.4 LTS
  • Python version: 3.12.3
  • pygeoapi version: master

Metadata

Metadata

Assignees

Labels

OGC API - MapsOGC API - MapsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions