aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-import
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-08-14 18:35:06 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-08-14 18:37:14 +0200
commitd62196c41e7667106cd21603bb48acc694029669 (patch)
tree72d028ab90d66d95136facb79222831ec9fd8620 /webmap-import
parent7d0dafa2d6c41e594217b784e19c0e463c062bce (diff)
webmap-import: Warn when the output geometry column is nullable.
Diffstat (limited to 'webmap-import')
-rwxr-xr-xwebmap-import9
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,