aboutsummaryrefslogtreecommitdiffstats
path: root/import_source.py
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-08-14 13:58:59 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-08-14 16:02:17 +0200
commit878d693d3cda9dc667508889732614bdd9e31abd (patch)
treeeec1252140609c75c68b6fab010db2d2828f71ea /import_source.py
parent4e2b96ad9f92ae497a4c88477de99f4ecc93c042 (diff)
Drop support for gdal <3.9.
Diffstat (limited to 'import_source.py')
-rw-r--r--import_source.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/import_source.py b/import_source.py
index d5931ad..8a8ff1a 100644
--- a/import_source.py
+++ b/import_source.py
@@ -47,7 +47,6 @@ from common import BadConfiguration, escape_identifier, escape_literal_str
from common_gdal import (
gdalSetOpenExArgs,
gdalGetMetadataItem,
- gdalVersionMin,
formatTZFlag,
getSpatialFilterFromGeometry,
)
@@ -993,9 +992,7 @@ def updateLayerCache(ds : gdal.Dataset, lyr : ogr.Layer, cache : ogr.Layer,
fingerprint_old = feature.GetFieldAsBinary(2) if feature.IsFieldSetAndNotNull(2) else None
assert cache.GetNextFeature() is None
- if not gdalVersionMin(maj=3, min=8):
- tzFlag = 0 # ogr.TZFLAG_UNKNOWN
- elif last_updated.tzinfo == UTC:
+ if last_updated.tzinfo == UTC:
tzFlag = ogr.TZFLAG_UTC
else:
td = last_updated.utcoffset()