diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-06-11 11:51:23 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-06-11 11:51:23 +0200 |
commit | 231d64cbd14c2d1ccb6468dc9666d4433e39834c (patch) | |
tree | d6ec318fba47bc79940eb0a977826904288f2cac /export_mvt.py | |
parent | 575f8a460d25868cda4e9cef522e43650164f89b (diff) |
MVT export: Rename field "age" to "ts".
“Age” is misleading as it suggests a value that increases over time as
times stretches away from a fixed epoch. A timestamp (ts) is a more
appropriate term for that field (it's rather a “daystamp” but that's a
matter of precision).
Diffstat (limited to 'export_mvt.py')
-rw-r--r-- | export_mvt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/export_mvt.py b/export_mvt.py index 31c7044..8d90129 100644 --- a/export_mvt.py +++ b/export_mvt.py @@ -383,7 +383,7 @@ def getFieldMap(lyr_dst : ogr.Layer, lyr_src : ogr.Layer, defn_dst = ogr.FieldDefn() defn_src_fld = defn_src.GetFieldDefn(idx_src) - if fld_dst == 'age': + if fld_dst == 'ts': if defn_src_fld.GetType() not in (ogr.OFTDate, ogr.OFTDateTime): raise RuntimeError(f'Field "{fld_src}" of source layer "{lyr_src.GetName()}"' ' has type ' + ogr.GetFieldTypeName(defn_src_fld.GetType()) + |