From ea73297ea426eac1dcc0133c4cd730ff029e26a8 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 30 Dec 2019 00:50:08 +0100 Subject: deformation: add support for +grids= for GeoTIFF grids This option is to load grid(s) that have both the horizontal and vertical velocities in the same file. Can be tested with the following grid https://github.com/rouault/sample_proj_gtiff_grids/blob/master/nkgrf03vel_realigned.tif converted from the original .ct2 and .gtx with ``` gdal_translate nkgrf03vel_realigned.vrt nkgrf03vel_realigned.tif -co COMPRESS=DEFLATE -co PREDICTOR=3 -co BLOCKYSIZE=241 -co INTERLEAVE=BAND ``` where nkgrf03vel_realigned.vrt is ``` GEOGCRS["Unknown based on GRS80", DATUM["Unknown based on GRS80", ELLIPSOID["GRS 1980",6378137,298.257222101, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], CS[ellipsoidal,2], AXIS["geodetic latitude (Lat)",north, ORDER[1], ANGLEUNIT["degree",0.0174532925199433]], AXIS["geodetic longitude (Lon)",east, ORDER[2], ANGLEUNIT["degree",0.0174532925199433]]] 2.9166666666666670e+00, 1.6666666666666666e-01, 0.0000000000000000e+00, 7.3041666666666686e+01, 0.0000000000000000e+00, -8.3333333333333329e-02 Nordic and Baltic countries Point The Nordic Geodetic Commission. Creative Commons Attribution 4.0 https://creativecommons.org/licenses/by/4.0/ 2019:12:30 00:00:00 Deformation model covering the Nordic and Baltic countries. Used in transformations between global reference frames and the local realisations of ETRS89 in the Nordic and Baltic countries VELOCITY east_velocity mm/year /home/even/proj/proj-datumgrid/europe/nkgrf03vel_realigned_xy.ct2 2 north_velocity mm/year /home/even/proj/proj-datumgrid/europe/nkgrf03vel_realigned_xy.ct2 1 up_velocity mm/year /home/even/proj/proj-datumgrid/europe/nkgrf03vel_realigned_z.gtx 1 ``` --- data/tests/nkgrf03vel_realigned_extract.tif | Bin 0 -> 1519 bytes data/tests/nkgrf03vel_realigned_xy_extract.ct2 | Bin 0 -> 360 bytes data/tests/nkgrf03vel_realigned_z_extract.gtx | Bin 0 -> 140 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 data/tests/nkgrf03vel_realigned_extract.tif create mode 100644 data/tests/nkgrf03vel_realigned_xy_extract.ct2 create mode 100644 data/tests/nkgrf03vel_realigned_z_extract.gtx (limited to 'data/tests') diff --git a/data/tests/nkgrf03vel_realigned_extract.tif b/data/tests/nkgrf03vel_realigned_extract.tif new file mode 100644 index 00000000..70e79e93 Binary files /dev/null and b/data/tests/nkgrf03vel_realigned_extract.tif differ diff --git a/data/tests/nkgrf03vel_realigned_xy_extract.ct2 b/data/tests/nkgrf03vel_realigned_xy_extract.ct2 new file mode 100644 index 00000000..89232b9f Binary files /dev/null and b/data/tests/nkgrf03vel_realigned_xy_extract.ct2 differ diff --git a/data/tests/nkgrf03vel_realigned_z_extract.gtx b/data/tests/nkgrf03vel_realigned_z_extract.gtx new file mode 100644 index 00000000..5ea8aac7 Binary files /dev/null and b/data/tests/nkgrf03vel_realigned_z_extract.gtx differ -- cgit v1.2.3