[gdal-dev] Bug reading a byn file for Canadian geoid model?

Javier Jimenez Shaw j1 at jimenezshaw.com
Thu Jul 9 08:20:53 PDT 2026


Hi

I am trying to read this file, in theory based in ITRF
https://webapp.csrs-scrs.nrcan-rncan.gc.ca/geod/process/download-helper.php?file_id=GSD95
(there is another one based in NAD83xxx)

However in with gdalinfo I see this:
"Warning 1: CRS EPSG:4140 is deprecated. Its non-deprecated replacement
EPSG:4617 will be used instead. To use the original CRS, set the
OSR_USE_NON_DEPRECATED configuration option to NO."

EPSG:4140 https://spatialreference.org/ref/epsg/4140/ is NAD83(CSRS98),
that is not ITRF, as far as I know.

However in byndataset.h there is this line:

constexpr int BYN_DATUM_0 = 4140;  /* ITRF2008 (GRS80 based WGS84) */

https://github.com/OSGeo/gdal/blob/master/frmts/raw/byndataset.h#L168

Are we parsing the header wrongly?

There is some documentation in
https://webapp.csrs-scrs.nrcan-rncan.gc.ca/geod/tools-outils/sample_doc_files/NRCan_Geoid_GridFormat_EN_2023.pdf
I think what I say above applies to the field 16, Datum.

Thanks
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20260709/c5819eae/attachment.htm>


More information about the gdal-dev mailing list