Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs =================================================================== diff -u -r6557 -r7060 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 6557) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 7060) @@ -272,6 +272,12 @@ soilProfile.BottomLevel = detector.LayerList[detector.LayerList.Count - 1].EndPoint.Z; for (var i = 0; i < detector.LayerList.Count; i++) { + bool isHolePresentBeforeLayer = (i > 0) && (Math.Abs(detector.LayerList[i].StartPoint.Z - detector.LayerList[i -1].EndPoint.Z) > 1e-3); + if (isHolePresentBeforeLayer) + { + var emptyLayer = new SoilLayer1D(null, detector.LayerList[i - 1].EndPoint.Z); + soilProfile.Layers.Add(emptyLayer); + } var layer = new SoilLayer1D(detector.LayerList[i].Soil, detector.LayerList[i].StartPoint.Z) { IsAquifer = detector.LayerList[i].IsAquifer,