GeoPackageReader mis-interprets the tile matrix srid for an actual EPSG code

Description

The srs_id is just a foreign key, but it's common for it to be exactly the SRS code also found in the gpkg_spatial_ref_sys table (e.g, gdal_translate sets up the geopackage like that).
The current code fails to do the join and get the actual srs, resulting in a failure when the srs_id is not equal to the actual organization_coordsys_id.

Environment

None

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Components

Fix versions

Priority

Medium
Configure