From c9d4b0efb994ee522a036628d6becc6f6a519261 Mon Sep 17 00:00:00 2001
From: Martin Dobias <wonder.sk@gmail.com>
Date: Tue, 18 Feb 2020 22:19:15 +0100
Subject: Add alternative grid for JTSK - JTSK03 transform (EPSG:8364)

The definition of EPSG:8364 uses NADCON method for horizontal grid (.las/.los files)
but this format is not supported by PROJ.

UGKK (Slovak Geodetic and Cartographic Institute) provides NADCON .las/.los files here:
https://www.geoportal.sk/files/gz/slovakia_jtsk03_to_jtsk.zip

Additionally UGKK also provides the same grid file in NTv2 format:
https://www.geoportal.sk/files/gz/slovakia_jtsk03_to_jtsk_ntv2.zip

So let's add the NTv2 file the grid_alternatives table so that PROJ can automatically pick it up...
---
 data/sql/grid_alternatives.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'data/sql/grid_alternatives.sql')

diff --git a/data/sql/grid_alternatives.sql b/data/sql/grid_alternatives.sql
index d8fd0c77..1c3f3f2e 100644
--- a/data/sql/grid_alternatives.sql
+++ b/data/sql/grid_alternatives.sql
@@ -2110,3 +2110,19 @@ INSERT INTO grid_alternatives(original_grid_name,
                               0,
                               'proj-datumgrid-oceania',
                               NULL, NULL, NULL, NULL);
+
+-- Slovakia
+INSERT INTO grid_alternatives(original_grid_name,
+                              proj_grid_name,
+                              proj_grid_format,
+                              proj_method,
+                              inverse_direction,
+                              package_name,
+                              url, direct_download, open_license, directory)
+                      VALUES ('Slovakia_JTSK03_to_JTSK.LAS',
+                              'Slovakia_JTSK03_to_JTSK.gsb',
+                              'NTv2',
+                              'hgridshift',
+                              0,
+                              NULL,
+                              NULL, NULL, NULL, NULL);
-- 
cgit v1.2.3

