Index: src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GeneratedMapLayerInfoUpgradeExtension.cs
===================================================================
diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a
--- src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GeneratedMapLayerInfoUpgradeExtension.cs (.../GeneratedMapLayerInfoUpgradeExtension.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9)
+++ src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GeneratedMapLayerInfoUpgradeExtension.cs (.../GeneratedMapLayerInfoUpgradeExtension.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a)
@@ -15,7 +15,10 @@
/// Generated map layer to extract the paths from
public static void UpgradeToParentPaths(this IList generatedMapLayerInfoList, ILayer generatedLayer)
{
- if (!generatedMapLayerInfoList.Any(mi => mi.ParentPath.StartsWith("*"))) return;
+ if (!generatedMapLayerInfoList.Any(mi => mi.ParentPath.StartsWith("*")))
+ {
+ return;
+ }
SetParentPath(generatedLayer, 0, "", "", generatedMapLayerInfoList.GroupBy(mi => GetLevel(mi.ParentPath)).ToDictionary(g => g.Key, g => g.ToList()));
}
@@ -34,7 +37,11 @@
{
if (!parentPath.StartsWith("*"))
{
- return new[] {"-1", parentPath};
+ return new[]
+ {
+ "-1",
+ parentPath
+ };
}
return parentPath.TrimStart('*').Split(';');
@@ -56,7 +63,9 @@
var groupLayer = layer as GroupLayer;
if (groupLayer == null)
+ {
return;
+ }
var parentPath = String.Format("{0}\\{1}", path, groupLayer.Name);
var subLayers = groupLayer.Layers.ToList();