From f7785f929a4402a98a2d0bd428ba00968be8cf01 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 14 Aug 2025 15:59:29 +0200 Subject: =?UTF-8?q?Use=20.UpdateFeature()=20from=20gdal=20=E2=89=A53.7.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webmap-import | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webmap-import') 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 = [ -- cgit v1.2.3