diff options
Diffstat (limited to 'webmap-import')
-rwxr-xr-x | webmap-import | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webmap-import b/webmap-import index 00c4756..8311c26 100755 --- a/webmap-import +++ b/webmap-import @@ -593,6 +593,9 @@ def createOutputLayer(ds, layername, srs=None, options=None): lyr = dso.CreateLayer(layername, **kwargs) if lyr is None: raise Exception(f'Could not create destination layer "{layername}"') + # TODO use CreateLayerFromGeomFieldDefn() from ≥v3.9 as it's not + # possible to toggle the geomfield's nullable property after fact + # otherwise fields = options['fields'] if len(fields) > 0 and not lyr.TestCapability(ogr.OLCCreateField): |