MCPcopy Create free account
hub / github.com/OSGeo/PROJ / fill_engineering_datum

Function fill_engineering_datum

scripts/build_db.py:236–243  ·  view source on GitHub ↗
(proj_db_cursor)

Source from the content-addressed store, hash-verified

234
235
236def fill_engineering_datum(proj_db_cursor):
237
238 proj_db_cursor.execute("SELECT datum_code, datum_name, publication_date, frame_reference_epoch, anchor_epoch, deprecated FROM epsg.epsg_datum WHERE datum_type IN ('engineering') AND datum_name NOT LIKE 'EPSG example%'")
239 res = proj_db_cursor.fetchall()
240 for (datum_code, datum_name, publication_date, frame_reference_epoch, anchor_epoch, deprecated) in res:
241 publication_date = compute_publication_date(datum_code, datum_name, frame_reference_epoch, publication_date)
242 proj_db_cursor.execute(
243 "INSERT INTO engineering_datum VALUES (?, ?, ?, ?, NULL, ?, ?)", (EPSG_AUTHORITY, datum_code, datum_name, publication_date, anchor_epoch, deprecated))
244
245
246def fill_datumensemble(proj_db_cursor):

Callers 1

build_db.pyFile · 0.85

Calls 2

compute_publication_dateFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected