[gdal-dev] Displaying the transform behind a CoordinateTransformation object

Daniel Evans Daniel.Evans at jbarisk.com
Wed Jan 6 07:46:25 PST 2021


Hello,

In QGIS, it is possible to select from several available transformations between coordinate systems if the user desires. See their documentation at: https://docs.qgis.org/3.4/en/docs/user_manual/working_with_projections/working_with_projections.html#datum-transformations

With GDAL, is it possible to perform some or all of:

  1.  Showing the details of the transform automatically selected by a CoordinateTransformation object,
  2.  Selecting/specifying an alternate transform,
  3.  Listing all available transforms between two coordinate systems?


I've had a quick look at the QGIS source code, which pulls the transforms from a sqlite database, but the table it references ("tbl_datum_transform") is not in my proj.db (Proj v6.2.1), so I suspect it's a separate/custom/processed database.

https://github.com/qgis/QGIS/blob/f32725658f205af4ac9718d3a3b74f13eaa98d3e/src/core/qgsdatumtransform.cpp
https://github.com/qgis/QGIS/blob/c491b9dbd7dd5012a9db4a9a21ded28ae49bd4ec/src/core/qgscoordinatereferencesystem.h
(A comment in the latter states "The database of CRS shipped with QGIS is stored in a SQLite database (see QgsApplication::srsDatabaseFilePath()) and it is based on the data files maintained by GDAL project (a variety of .csv and .wkt files).")


In particular, my query relates to transforms to/from British National Grid, where I'm told that many transforms of varying accuracy are available, and QGIS doesn't choose the transform our users want automatically. I've not been able to answer their queries regarding what transformation GDAL has chosen when we create a CoordinateTransformation object.

Dr Daniel Evans
Software Developer


[JBA COVID-19 statement]<https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf>

T +44 (0) 1756 799919
www.jbarisk.com<http://www.jbarisk.com>

[Visit our website]<http://www.jbarisk.com> [http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-LINKEDIN.png]  [Follow us on Twitter] <https://twitter.com/jbarisk>

Find out more about us here: www.jbarisk.com<http://www.jbarisk.com/> and follow us on Twitter @JBARisk<http://twitter.com/JBARisk> and LinkedIn<https://www.linkedin.com/company/2370847?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2370847%2Cidx%3A2-1-2%2CtarId%3A1447414259786%2Ctas%3AJBA%20RISK%20MANAGEMENT>

The JBA Group supports the JBA Trust.

All JBA Risk Management's email messages contain confidential information and are intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.


JBA Risk Management Limited is registered in England, company number 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire, BD23 3FD, Telephone: +441756799919


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210106/71ddb36f/attachment-0001.html>


More information about the gdal-dev mailing list