Skip to content

Clarify CRS handling and reprojection behaviour for PostGIS providers #2190

@denizk99-ea

Description

@denizk99-ea

We’re working with UK geospatial datasets stored in PostGIS using British National Grid (EPSG:27700) via pygeoapi (OGC API Features) and want to confirm best practice for CRS handling.

Our understanding is that pygeoapi does not automatically reproject PostGIS geometries, that declaring crs or storage_crs only advertises supported CRS to clients, and that CRS transformation is intentionally delegated to the backend. As a result, the recommended pattern appears to be exposing data through database views using ST_Transform(geom, 4326) and keeping the API default CRS as WGS84 for OGC compliance, allowing GIS clients to reproject back to BNG automatically.

We’d appreciate confirmation that this is the intended approach, clarification on whether storage_crs is expected to apply to SQL/PostGIS providers, and whether it would make sense to document this behaviour more explicitly, as it’s easy to assume CRS configuration alone will handle reprojection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions