aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build_db.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build_db.py b/scripts/build_db.py
index ec4b7397..772b2dad 100755
--- a/scripts/build_db.py
+++ b/scripts/build_db.py
@@ -650,8 +650,12 @@ def fill_grid_transformation(proj_db_cursor):
)
#proj_db_cursor.execute("INSERT INTO coordinate_operation VALUES (?,?,'grid_transformation')", (EPSG_AUTHORITY, code))
- proj_db_cursor.execute('INSERT INTO grid_transformation VALUES (' +
- '?,?,?, ?, ?,?,?, ?,?, ?,?, ?, ?,?,?,?, ?,?,?,?, ?,?, ?,?)', arg)
+ try:
+ proj_db_cursor.execute('INSERT INTO grid_transformation VALUES (' +
+ '?,?,?, ?, ?,?,?, ?,?, ?,?, ?, ?,?,?,?, ?,?,?,?, ?,?, ?,?)', arg)
+ except sqlite3.IntegrityError as e:
+ print(arg)
+ raise
def fill_other_transformation(proj_db_cursor):
# 9601: Longitude rotation