diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-08-14 18:35:06 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-08-14 18:37:14 +0200 |
commit | d62196c41e7667106cd21603bb48acc694029669 (patch) | |
tree | 72d028ab90d66d95136facb79222831ec9fd8620 /webmap-import | |
parent | 7d0dafa2d6c41e594217b784e19c0e463c062bce (diff) |
webmap-import: Warn when the output geometry column is nullable.
Diffstat (limited to 'webmap-import')
-rwxr-xr-x | webmap-import | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/webmap-import b/webmap-import index a68d60e..b4552d5 100755 --- a/webmap-import +++ b/webmap-import @@ -256,15 +256,6 @@ def processOutputLayer(ds : gdal.Dataset, raise RuntimeError(f'Output layer "{layername}" has no working ' 'CreateFeature() method') - geom_field_idx = 0 - geom_field = lyr.GetLayerDefn().GetGeomFieldDefn(geom_field_idx) - logging.debug('Geometry column #%d: name="%s\", type="%s", srs=%s, nullable=%s', - geom_field_idx, geom_field.GetName(), - ogr.GeometryTypeToName(geom_field.GetType()), - '-' if geom_field.GetSpatialRef() is None - else '"' + geom_field.GetSpatialRef().GetName() + '"', - bool(geom_field.IsNullable())) - sources = layerdef['sources'] if not (lyrcache is None or force or areSourceFilesNewer(layername, sources=sources, |