aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-import
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-08-14 15:59:29 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-08-14 16:03:30 +0200
commitf7785f929a4402a98a2d0bd428ba00968be8cf01 (patch)
tree42cfa0b349f6cffc18840f1fae8e1157ea843a92 /webmap-import
parent2c3ee79cb434fc4cf315ee3a6a526156053d76c4 (diff)
Use .UpdateFeature() from gdal ≥3.7.
Diffstat (limited to 'webmap-import')
-rwxr-xr-xwebmap-import8
1 files changed, 4 insertions, 4 deletions
diff --git a/webmap-import b/webmap-import
index 95c3b41..b4552d5 100755
--- a/webmap-import
+++ b/webmap-import
@@ -374,10 +374,10 @@ def validateCacheLayer(ds : gdal.Dataset, name : str) -> bool:
logging.warning('Table "%s" does not exist', name)
return False
- #if not (lyr.TestCapability(ogr.OLCRandomWrite) and lyr.TestCapability(ogr.OLCUpdateFeature)):
- # logging.warning('Layer "%s" does not support OLCUpdateFeature capability, '
- # 'ignoring cache', name)
- # return False
+ if not (lyr.TestCapability(ogr.OLCRandomWrite) and lyr.TestCapability(ogr.OLCUpdateFeature)):
+ logging.warning('Layer "%s" does not support OLCUpdateFeature capability, '
+ 'ignoring cache', name)
+ return False
defn = lyr.GetLayerDefn()
fields = [