From 231d64cbd14c2d1ccb6468dc9666d4433e39834c Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 11 Jun 2025 11:51:23 +0200 Subject: MVT export: Rename field "age" to "ts". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “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). --- export_mvt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'export_mvt.py') 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()) + -- cgit v1.2.3