diff options
-rwxr-xr-x | gis-observation-map | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gis-observation-map b/gis-observation-map index fbd9146..c1ac22e 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -879,6 +879,8 @@ if args.topo_basedir is not None and projectInstance is not None: for topo in topo_maps: minScale = None rootGroup = QgsProject.instance().layerTreeRoot().findGroup(topo) + if rootGroup is None: + continue if topo in idxContains.keys() and not idxContains[topo]: # if the tileset doesn't entirely covers the area of interest, # then uncheck the layer group and disable scale-based visibility |