aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwebmap-import3
1 files changed, 2 insertions, 1 deletions
diff --git a/webmap-import b/webmap-import
index a3ffd50..5515dd0 100755
--- a/webmap-import
+++ b/webmap-import
@@ -981,7 +981,8 @@ if __name__ == '__main__':
# clear non-empty output layer
clearLayer(dso, lyr)
- if lyr.SetMetadataItem('DESCRIPTION', layerdef.get('description', '')) != GDAL_CE_None:
+ description = layerdef.get('description', None)
+ if description is not None and lyr.SetMetadataItem('DESCRIPTION', description) != GDAL_CE_None:
logging.warning('Could not set description metadata')
for source in sources: