From aee1709d6c02f466b88ea0aa44928e6820f45045 Mon Sep 17 00:00:00 2001
From: Even Rouault <even.rouault@spatialys.com>
Date: Mon, 17 May 2021 16:00:12 +0200
Subject: projsync: make it filter out files not intended for the current
 version

* Add a PROJ_DATA.VERSION in proj.db to indicate the target PROJ-data
  package version
* Make projsync use that information and the version_added and
  version_removed properties added in https://github.com/OSGeo/PROJ-data/pull/67
  to filter out files that are not relevant
* Add --no-version-filtering and --verbose switches
---
 data/sql/metadata.sql | 4 ++++
 1 file changed, 4 insertions(+)

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

diff --git a/data/sql/metadata.sql b/data/sql/metadata.sql
index 9cce8251..d7cbf026 100644
--- a/data/sql/metadata.sql
+++ b/data/sql/metadata.sql
@@ -15,3 +15,7 @@ INSERT INTO "metadata" VALUES('EPSG.DATE', '2021-05-16');
 -- The value of ${PROJ_VERSION} is substituted at build time by the actual
 -- value.
 INSERT INTO "metadata" VALUES('PROJ.VERSION', '${PROJ_VERSION}');
+
+-- Version of the PROJ-data package with which this database is the most
+-- compatible.
+INSERT INTO "metadata" VALUES('PROJ_DATA.VERSION', '1.7');
-- 
cgit v1.2.3

