Use NTv2 grid files in SpatiaLite ST_Transform

29 views
Skip to first unread message

Antonio Valanzano

unread,
Dec 21, 2025, 3:02:23 PM12/21/25
to SpatiaLite Users
I am thinking of buying from  the "Italian Geographic Military Service"   some .gsb files for doing some coordinate transformations between different CRSs with the best precision.

Does someone know how to use this files in Spatialite ?

Thanks 
Antonio



phi...@gmail.com

unread,
Dec 22, 2025, 12:21:22 PM12/22/25
to SpatiaLite Users
Hi Antonio,

according to documentation you should be able to use PROJ strings:

ST_Transform( geom Geometry , newSRID Integer , area_of_use Geometry , proj_string_from Text , proj_string_to Text ) : Geometry

Here is one example that uses NTv2 file:

FROM:
+proj=tmerc +lat_0=0 +lon_0=16.5 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +towgs84=0,0,0,0,0,0,0

TO
+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=5500000 +y_0=0 +ellps=bessel +nadgrids=./HRNTv2.gsb +units=m

Antonio Valanzano

unread,
Dec 23, 2025, 3:41:13 AM12/23/25
to SpatiaLite Users
Thanks for the info.

I will read the documentation more thoroughly.

Antonio

Reply all
Reply to author
Forward
0 new messages