aboutsummaryrefslogtreecommitdiff
path: root/scripts/build_db_from_esri.py
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-18 22:33:48 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-11-18 22:41:24 +0100
commitdf339795a8af5487cbff234083a8151c1b3eb181 (patch)
treea5e1a8ee5cdadc9eedff51470b02b04c6d4e7fab /scripts/build_db_from_esri.py
parentb063035618a00218daed43260750ee4e60d5c84e (diff)
downloadPROJ-df339795a8af5487cbff234083a8151c1b3eb181.tar.gz
PROJ-df339795a8af5487cbff234083a8151c1b3eb181.zip
Database: add a publication_date column to geodetic_datum and vertical_datum
Populated from realization_epoch column from EPSG The 'publication_date' naming is from OGC Topic 2, and hasn't been yet adopted by the EPSG dataset. See http://docs.opengeospatial.org/as/18-005r4/18-005r4.html , Annex G, clause 11 and https://32zn56499nov99m251h4e9t8-wpengine.netdna-ssl.com/wp-content/uploads/2019/09/EPSG-relational-data-model-changes_2019-09-18.pdf
Diffstat (limited to 'scripts/build_db_from_esri.py')
-rwxr-xr-xscripts/build_db_from_esri.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build_db_from_esri.py b/scripts/build_db_from_esri.py
index 69940798..35fbe3a8 100755
--- a/scripts/build_db_from_esri.py
+++ b/scripts/build_db_from_esri.py
@@ -560,7 +560,7 @@ def import_geogcs():
p = map_datum_esri_to_parameters[datum_code]
- sql = """INSERT INTO "geodetic_datum" VALUES('ESRI','%s','%s','%s',NULL,'%s','%s','%s','%s','%s','%s',%d);""" % (
+ sql = """INSERT INTO "geodetic_datum" VALUES('ESRI','%s','%s','%s',NULL,'%s','%s','%s','%s','%s','%s',NULL,%d);""" % (
datum_code, p['esri_name'], p['description'], p['ellps_auth_name'], p['ellps_code'], pm_auth_name, pm_code, area_auth_name, area_code, p['deprecated'])
all_sql.append(sql)
p['pm_auth_name'] = pm_auth_name
@@ -589,7 +589,7 @@ def import_geogcs():
'deprecated': p['deprecated']
}
- sql = """INSERT INTO "geodetic_datum" VALUES('ESRI','%s','%s',NULL,'%s','%s','%s','%s','%s','%s','%s',%d);""" % (
+ sql = """INSERT INTO "geodetic_datum" VALUES('ESRI','%s','%s',NULL,'%s','%s','%s','%s','%s','%s','%s',NULL,%d);""" % (
datum_code, p['esri_name'], p['description'], p['ellps_auth_name'], p['ellps_code'], pm_auth_name, pm_code, area_auth_name, area_code, p['deprecated'])
all_sql.append(sql)
p['pm_auth_name'] = pm_auth_name
@@ -1198,7 +1198,7 @@ def import_vertcs():
datum_written.add(datum_code)
p = map_vdatum_esri_to_parameters[datum_code]
- sql = """INSERT INTO "vertical_datum" VALUES('ESRI','%s','%s',NULL,NULL,'%s','%s',%d);""" % (
+ sql = """INSERT INTO "vertical_datum" VALUES('ESRI','%s','%s',NULL,NULL,'%s','%s',NULL,%d);""" % (
datum_code, p['esri_name'], area_auth_name, area_code, p['deprecated'])
all_sql.append(sql)