[postgis-users] ST_Transform Z heights between ODN and WSG [solved]

Paul Ramsey pramsey at cleverelephant.ca
Thu Feb 2 08:00:28 PST 2023



> On Feb 2, 2023, at 1:58 AM, James Howe <jmh205 at cam.ac.uk> wrote:
> 
> Thanks for the help to look in the right direction.
> I downloaded the missing data files and it works now.
> 
> # projsync --system-directory --source-id uk_os
> 
> postgres=# SELECT st_asewkt(ST_Transform('SRID=7405;POINT(545068 258591 8.51)'::geometry, 4979));
>                                st_asewkt
> -------------------------------------------------------------------------
> SRID=4979;POINT(0.121584703519227 52.20646902224667 54.461915505876696)
> (1 row)
> 
> I guess 3.0 reduced what was included by default?

No, this is very much a proj and packaging thing. We just call the API.
As modern proj got better at grid shifts and finding the best transform chains, the proj team started collecting more grids. Eventually the grid collection got so large that distributing it as one unitary package stopped seeming reasonable. So network/cdn access was adopted, but as a result a "bare" distribution now includes zero grids, whereas before it was common for a packaged proj to at least include grids for the "more common" transforms.

P.


> 
> James
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users



More information about the postgis-users mailing list