diff options
Diffstat (limited to 'webmap-import')
-rwxr-xr-x | webmap-import | 8 |
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 = [ |