Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/SurfaceLines/MacroStabilityInwardsSurfaceLineExtensions.cs
===================================================================
diff -u -r00bca55b16694cd9d828d5a0052016b442b78b6b -r93acf9b0dcf191ef5088f4d822a81b1759c10532
--- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/SurfaceLines/MacroStabilityInwardsSurfaceLineExtensions.cs (.../MacroStabilityInwardsSurfaceLineExtensions.cs) (revision 00bca55b16694cd9d828d5a0052016b442b78b6b)
+++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.IO/SurfaceLines/MacroStabilityInwardsSurfaceLineExtensions.cs (.../MacroStabilityInwardsSurfaceLineExtensions.cs) (revision 93acf9b0dcf191ef5088f4d822a81b1759c10532)
@@ -62,6 +62,7 @@
surfaceLine.TrySetSurfaceLevelOutside(characteristicPoints.SurfaceLevelOutside);
surfaceLine.TrySetDikeToeAtRiver(characteristicPoints.DikeToeAtRiver);
surfaceLine.TrySetDikeTopAtPolder(characteristicPoints.DikeTopAtPolder);
+ surfaceLine.TrySetDikeTopAtRiver(characteristicPoints.DikeTopAtRiver);
surfaceLine.TrySetDikeToeAtPolder(characteristicPoints.DikeToeAtPolder);
surfaceLine.TrySetSurfaceLevelInside(characteristicPoints.SurfaceLevelInside);
@@ -239,6 +240,31 @@
}
///
+ /// Tries to set the at the location of
+ /// .
+ ///
+ /// The to set the
+ /// for.
+ /// The point at which to set the .
+ /// Thrown when is null or
+ /// not on the .
+ private static void TrySetDikeTopAtRiver(this MacroStabilityInwardsSurfaceLine surfaceLine, Point3D point)
+ {
+ try
+ {
+ surfaceLine.SetDikeTopAtRiverAt(point);
+ }
+ catch (ArgumentNullException)
+ {
+ throw CreateMandatoryCharacteristicPointException(CreateMissingMandatoryPointMessage(RingtoetsCommonDataResources.CharacteristicPoint_DikeTopAtRiver), surfaceLine.Name);
+ }
+ catch (ArgumentException e)
+ {
+ throw CreateMandatoryCharacteristicPointException(e.Message, surfaceLine.Name);
+ }
+ }
+
+ ///
/// Tries to set the at the location of
/// .
///