From 76906029f3798ecaeb0a3f61d140d7714cc8524d Mon Sep 17 00:00:00 2001
From: Even Rouault <even.rouault@spatialys.com>
Date: Fri, 19 Mar 2021 11:26:39 +0100
Subject: Database: relax trigger check when inserting a conversion to accept
 any conversion method in the PROJ namespace

Helps for example to use CRS definitions using the non-EPSG codified
Sinusoidal method.
---
 data/sql/proj_db_table_defs.sql | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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

diff --git a/data/sql/proj_db_table_defs.sql b/data/sql/proj_db_table_defs.sql
index 037e2b6d..e43dfad4 100644
--- a/data/sql/proj_db_table_defs.sql
+++ b/data/sql/proj_db_table_defs.sql
@@ -534,9 +534,7 @@ BEGIN
             'EPSG_9842_Equidistant Cylindrical',
             'EPSG_9843_Axis Order Reversal (2D)',
             'EPSG_9844_Axis Order Reversal (Geographic3D horizontal)',
-            'EPSG_9827_Bonne',
-            'PROJ_gstm_Gauss Schreiber Transverse Mercator',
-            'PROJ_mill_PROJ mill');
+            'EPSG_9827_Bonne') AND NEW.auth_name != 'PROJ';
 END;
 
 CREATE TRIGGER conversion_table_insert_trigger
-- 
cgit v1.2.3

