diff --git a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeCommandFactory.cs b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeCommandFactory.cs index e944bb2..fb46daa 100644 --- a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeCommandFactory.cs +++ b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeCommandFactory.cs @@ -119,7 +119,7 @@ private async Task IsValidNodeUpdate(RouteNode shadowTableNode, RouteNode } private bool AlreadyUpdated(RouteNode routeNode, RouteNode routeNodeShadowTable) - => routeNode.MarkAsDeleted == routeNodeShadowTable.MarkAsDeleted && routeNode.GetGeoJsonCoordinate() == routeNodeShadowTable.GetGeoJsonCoordinate(); + => routeNode.MarkAsDeleted == routeNodeShadowTable.MarkAsDeleted && routeNode.GetGeoJsonCoordinate(true) == routeNodeShadowTable.GetGeoJsonCoordinate(true); private bool IsCreatedByApplication(RouteNode routeNode) => routeNode.ApplicationName == _applicationSettings.ApplicationName; diff --git a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeEventFactory.cs b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeEventFactory.cs index 64864b0..0e67c65 100644 --- a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeEventFactory.cs +++ b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteNodeEventFactory.cs @@ -29,7 +29,7 @@ public RouteNodeAdded CreateAdded(RouteNode routeNode) routeNode?.MappingInfo, routeNode?.SafetyInfo, routeNode.Mrid, - routeNode.GetGeoJsonCoordinate(), + routeNode.GetGeoJsonCoordinate(false), routeNode.RouteNodeInfo); } @@ -57,7 +57,7 @@ public RouteNodeGeometryModified CreateGeometryModified(RouteNode routeNode) routeNode?.ApplicationName, routeNode?.ApplicationInfo, routeNode.Mrid, - routeNode.GetGeoJsonCoordinate()); + routeNode.GetGeoJsonCoordinate(false)); } } } diff --git a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentCommandFactory.cs b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentCommandFactory.cs index f3181c6..d9f54e9 100644 --- a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentCommandFactory.cs +++ b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentCommandFactory.cs @@ -161,7 +161,7 @@ private List HandleExistingRouteSegmentSplitted(int intersectingS private bool AlreadyUpdated(RouteSegment routeSegment, RouteSegment shadowTableRouteSegment) { - return routeSegment.MarkAsDeleted == shadowTableRouteSegment.MarkAsDeleted && routeSegment.GetGeoJsonCoordinate() == shadowTableRouteSegment.GetGeoJsonCoordinate(); + return routeSegment.MarkAsDeleted == shadowTableRouteSegment.MarkAsDeleted && routeSegment.GetGeoJsonCoordinate(true) == shadowTableRouteSegment.GetGeoJsonCoordinate(true); } private bool IsCreatedByApplication(RouteSegment routeSegment) diff --git a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentEventFactory.cs b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentEventFactory.cs index e66df19..b38b0a3 100644 --- a/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentEventFactory.cs +++ b/src/OpenFTTH.GDBIntegrator.Integrator/Factories/RouteSegmentEventFactory.cs @@ -45,7 +45,7 @@ public RouteSegmentGeometryModified CreateGeometryModified(RouteSegment routeSeg useApplicationName ? _applicationSettings.ApplicationName : routeSegment?.ApplicationName, routeSegment?.ApplicationInfo, routeSegment.Mrid, - routeSegment.GetGeoJsonCoordinate()); + routeSegment.GetGeoJsonCoordinate(false)); } public RouteSegmentMarkedForDeletion CreateMarkedForDeletion(RouteSegment routeSegment, bool useApplicationName = false) @@ -78,7 +78,7 @@ public RouteSegmentAdded CreateAdded(RouteSegment routeSegment, RouteNode startR routeSegment.Mrid, startRouteNode.Mrid, endRouteNode.Mrid, - routeSegment.GetGeoJsonCoordinate(), + routeSegment.GetGeoJsonCoordinate(false), routeSegment?.RouteSegmentInfo); } } diff --git a/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteNode.cs b/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteNode.cs index 20d7c41..2394ce5 100644 --- a/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteNode.cs +++ b/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteNode.cs @@ -54,11 +54,12 @@ public virtual Point GetPoint() return (Point)geometry; } - public virtual string GetGeoJsonCoordinate() + public virtual string GetGeoJsonCoordinate(bool round) { var wkbReader = new WKBReader(); var geometry = wkbReader.Read(Coord); - var point = (Point)geometry; + var point = round ? RoundPoint((Point)geometry) : (Point)geometry; + var serializer = GeoJsonSerializer.Create(); using (var stringWriter = new StringWriter()) @@ -68,5 +69,25 @@ public virtual string GetGeoJsonCoordinate() return JObject.Parse(geoJson)["coordinates"].ToString(Formatting.None); }; } + + private Point RoundPoint(Point inputPoint) + { + const int roundDecimal = 8; + var newCoord = new CoordinateZ(); + + newCoord.X = Math.Round(inputPoint.X, roundDecimal); + newCoord.Y = Math.Round(inputPoint.Y, roundDecimal); + + if (inputPoint.Z != Coordinate.NullOrdinate) + { + newCoord.Z = Math.Round(inputPoint.Z, roundDecimal); + } + else + { + newCoord.Z = Coordinate.NullOrdinate; + } + + return new Point(newCoord); + } } } diff --git a/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteSegment.cs b/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteSegment.cs index 1289769..3b39479 100644 --- a/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteSegment.cs +++ b/src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteSegment.cs @@ -6,6 +6,7 @@ using Newtonsoft.Json.Linq; using OpenFTTH.Events.Core.Infos; using OpenFTTH.Events.RouteNetwork.Infos; +using System.Collections.Generic; namespace OpenFTTH.GDBIntegrator.RouteNetwork { @@ -43,9 +44,9 @@ public virtual Point FindEndPoint() return endPoint; } - public virtual string GetGeoJsonCoordinate() + public virtual string GetGeoJsonCoordinate(bool round) { - var lineString = GetLineString(); + var lineString = round ? RoundLineString(GetLineString()) : GetLineString(); var serializer = GeoJsonSerializer.Create(); using (var stringWriter = new StringWriter()) @@ -54,15 +55,37 @@ public virtual string GetGeoJsonCoordinate() var geoJson = stringWriter.ToString(); return JObject.Parse(geoJson)["coordinates"].ToString(Formatting.None); }; + } public virtual LineString GetLineString() { var wkbReader = new WKBReader(); var geometry = wkbReader.Read(Coord); - var lineString = (LineString)geometry; + return (LineString)geometry; + } + + private LineString RoundLineString(LineString inputLineString) + { + const int roundDecimal = 8; + + var newCoords = new List(); + foreach (var coord in inputLineString.Coordinates) + { + var c = new CoordinateZ(); + c.X = Math.Round(coord.X, roundDecimal); + c.Y = Math.Round(coord.Y, roundDecimal); + if (coord.Z != Coordinate.NullOrdinate) + { + c.Z = Math.Round(coord.Z, roundDecimal); + } + else + { + c.Z = Coordinate.NullOrdinate; + } + } - return lineString; + return new LineString(newCoords.ToArray()); } } } diff --git a/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteNodeCommandFactoryTest.cs b/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteNodeCommandFactoryTest.cs index 7ccdd3f..aa6e452 100644 --- a/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteNodeCommandFactoryTest.cs +++ b/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteNodeCommandFactoryTest.cs @@ -238,8 +238,8 @@ public async Task CreateUpdatedEvent_ShouldReturnRollbackInvalidRouteNodeOperati A.CallTo(() => geoDatabase.GetIntersectingRouteSegments(afterNode)).Returns(new List()); A.CallTo(() => afterNode.GetPoint()).Returns(CreatePoint(565931.4446905176, 6197297.75114815)); A.CallTo(() => shadowTableRouteNode.GetPoint()).Returns(CreatePoint(565920.4446905176, 6197297.74114815)); - A.CallTo(() => afterNode.GetGeoJsonCoordinate()).Returns("[565931.4446905176,6197297.75114815]"); - A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate()).Returns("[565920.4446905176,6197297.74114815]"); + A.CallTo(() => afterNode.GetGeoJsonCoordinate(true)).Returns("[565931.4446905176,6197297.75114815]"); + A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate(true)).Returns("[565920.4446905176,6197297.74114815]"); A.CallTo(() => geoDatabase.GetIntersectingRouteNodes(afterNode)).Returns(new List { A.Fake() }); var point = A.Fake(); @@ -269,11 +269,11 @@ public async Task CreateUpdatedEvent_ShouldReturnDoNothing_OnRouteNodeMarkedAsDe A.CallTo(() => geoDatabase.GetRouteNodeShadowTable(afterNode.Mrid, false)) .Returns(integratorRouteNode); - A.CallTo(() => afterNode.GetGeoJsonCoordinate()) + A.CallTo(() => afterNode.GetGeoJsonCoordinate(true)) .Returns("[565931.4446905176,6197297.75114815]"); A.CallTo(() => afterNode.MarkAsDeleted).Returns(true); - A.CallTo(() => integratorRouteNode.GetGeoJsonCoordinate()) + A.CallTo(() => integratorRouteNode.GetGeoJsonCoordinate(true)) .Returns("[565931.4446905176,6197297.75114815]"); A.CallTo(() => integratorRouteNode.MarkAsDeleted).Returns(true); @@ -302,10 +302,10 @@ public async Task CreateUpdatedEvent_ShouldReturnRollbackInvalidRouteNode_OnIsMo A.CallTo(() => applicationSetting.Value).Returns(appSettings); A.CallTo(() => afterNode.Mrid).Returns(Guid.NewGuid()); - A.CallTo(() => afterNode.GetGeoJsonCoordinate()).Returns("[552428.7508312801, 6188868.185819111]"); + A.CallTo(() => afterNode.GetGeoJsonCoordinate(true)).Returns("[552428.7508312801, 6188868.185819111]"); A.CallTo(() => afterNode.GetPoint()).Returns(point); A.CallTo(() => geoDatabase.GetRouteNodeShadowTable(afterNode.Mrid, false)).Returns(shadowTableRouteNode); - A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate()).Returns("[552428.7515896157,6188868.184787691]"); + A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate(true)).Returns("[552428.7515896157,6188868.184787691]"); A.CallTo(() => shadowTableRouteNode.GetPoint()).Returns(CreatePoint(552428.7515896157, 6188868.184787691)); var routeNodeValidator = A.Fake(); @@ -409,9 +409,9 @@ public async Task CreateUpdatedEvent_ShouldReturnRollbackInvalidRouteNode_OnInte A.CallTo(() => applicationSetting.Value).Returns(appSettingsValue); A.CallTo(() => afterNode.Mrid).Returns(Guid.NewGuid()); A.CallTo(() => geoDatabase.GetRouteNodeShadowTable(afterNode.Mrid, false)).Returns(shadowTableRouteNode); - A.CallTo(() => afterNode.GetGeoJsonCoordinate()).Returns("[665931.4446905176,7197297.75114815]"); + A.CallTo(() => afterNode.GetGeoJsonCoordinate(true)).Returns("[665931.4446905176,7197297.75114815]"); A.CallTo(() => afterNode.MarkAsDeleted).Returns(false); - A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate()).Returns("[565931.4446905176,6197297.75114815]"); + A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate(true)).Returns("[565931.4446905176,6197297.75114815]"); A.CallTo(() => shadowTableRouteNode.MarkAsDeleted).Returns(false); A.CallTo(() => afterNode.GetPoint()).Returns(CreatePoint(665931.4446905176, 7197297.75114815)); A.CallTo(() => shadowTableRouteNode.GetPoint()).Returns(CreatePoint(565931.4446905176, 6197297.75114815)); @@ -449,9 +449,9 @@ public async Task CreateUpdatedEvent_ShouldReturnRouteNodeLocationChanged_OnRout A.CallTo(() => geoDatabase.GetRouteNodeShadowTable(afterNode.Mrid, false)).Returns(shadowTableRouteNode); A.CallTo(() => afterNode.GetPoint()).Returns(CreatePoint(665931.4446905176, 7197297.75114815)); A.CallTo(() => shadowTableRouteNode.GetPoint()).Returns(CreatePoint(565931.4446905176, 6197297.75114815)); - A.CallTo(() => afterNode.GetGeoJsonCoordinate()).Returns("[665931.4446905176,7197297.75114815]"); + A.CallTo(() => afterNode.GetGeoJsonCoordinate(true)).Returns("[665931.4446905176,7197297.75114815]"); A.CallTo(() => afterNode.MarkAsDeleted).Returns(false); - A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate()).Returns("[565931.4446905176,6197297.75114815]"); + A.CallTo(() => shadowTableRouteNode.GetGeoJsonCoordinate(true)).Returns("[565931.4446905176,6197297.75114815]"); A.CallTo(() => shadowTableRouteNode.MarkAsDeleted).Returns(false); var point = A.Fake(); diff --git a/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteSegmentCommandFactoryTest.cs b/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteSegmentCommandFactoryTest.cs index b5cc345..7e3c4c9 100644 --- a/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteSegmentCommandFactoryTest.cs +++ b/test/OpenFTTH.GDBIntegrator.Integrator.Tests/Factories/RouteSegmentCommandFactoryTest.cs @@ -522,8 +522,8 @@ public async Task CreateUpdatedEvent_ShouldReturnDoNothing_OnRouteSegmentAfterAn A.CallTo(() => routeSegmentAfter.Mrid).Returns(Guid.NewGuid()); A.CallTo(() => routeSegmentShadowTable.Mrid).Returns(routeSegmentAfter.Mrid); A.CallTo(() => geoDatabase.GetRouteSegmentShadowTable(routeSegmentAfter.Mrid, false)).Returns(routeSegmentShadowTable); - A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); - A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); A.CallTo(() => routeSegmentShadowTable.MarkAsDeleted).Returns(false); A.CallTo(() => routeSegmentAfter.MarkAsDeleted).Returns(false); @@ -550,8 +550,8 @@ public async Task CreateUpdatedEvent_ShouldThrowException_OnGeometryBeingInvalid A.CallTo(() => routeSegmentShadowTable.Mrid).Returns(routeSegmentAfter.Mrid); A.CallTo(() => routeSegmentAfter.GetLineString()).Returns(A.Fake()); - A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); - A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); A.CallTo(() => routeSegmentAfter.MarkAsDeleted).Returns(false); A.CallTo(() => routeSegmentShadowTable.MarkAsDeleted).Returns(false); @@ -600,8 +600,8 @@ public async Task CreateUpdatedEvent_ShouldReturnTwoSplitEventsAndConnectivityCh A.CallTo(() => routeSegmentShadowTable.Mrid).Returns(routeSegmentAfter.Mrid); A.CallTo(() => routeSegmentAfter.GetLineString()).Returns(A.Fake()); - A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); - A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); A.CallTo(() => routeSegmentAfter.MarkAsDeleted).Returns(false); A.CallTo(() => routeSegmentShadowTable.MarkAsDeleted).Returns(false); @@ -645,8 +645,8 @@ public async Task CreateUpdatedEvent_ShouldReturnRouteSegmentLocationChanged_OnG A.CallTo(() => routeSegmentShadowTable.Mrid).Returns(routeSegmentAfter.Mrid); A.CallTo(() => routeSegmentAfter.GetLineString()).Returns(A.Fake()); - A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); - A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); A.CallTo(() => routeSegmentAfter.MarkAsDeleted).Returns(false); A.CallTo(() => routeSegmentShadowTable.MarkAsDeleted).Returns(false); @@ -747,8 +747,8 @@ public async Task CreateUpdatedEvent_ShouldThrowException_OnStartRouteNodeCountB .Returns(new ApplicationSetting { ApplicationName = "GDB_INTEGRATOR" }); A.CallTo(() => routeSegmentAfter.GetLineString()).Returns(A.Fake()); - A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); - A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); A.CallTo(() => routeSegmentAfter.MarkAsDeleted).Returns(false); A.CallTo(() => routeSegmentShadowTable.MarkAsDeleted).Returns(false); @@ -777,8 +777,8 @@ public async Task CreateUpdatedEvent_ShouldThrowException_OnEndRouteNodeCountBei .Returns(new ApplicationSetting { ApplicationName = "GDB_INTEGRATOR" }); A.CallTo(() => routeSegmentAfter.GetLineString()).Returns(A.Fake()); - A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); - A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate()).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentAfter.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 578238.4182511 6179279.78494725)"); + A.CallTo(() => routeSegmentShadowTable.GetGeoJsonCoordinate(true)).Returns("LINESTRING(578223.64355838 6179284.23759438, 378238.4182511 6179279.78494725)"); A.CallTo(() => routeSegmentAfter.MarkAsDeleted).Returns(false); A.CallTo(() => routeSegmentShadowTable.MarkAsDeleted).Returns(false); diff --git a/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteNodeTest.cs b/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteNodeTest.cs index a298ed9..a0c7ae8 100644 --- a/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteNodeTest.cs +++ b/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteNodeTest.cs @@ -132,7 +132,7 @@ public void GetGeoJsonCoordinate_ShouldReturnGeoJsonCoordinate_OnCalled() var routeNode = new RouteNode(mrid, coord, workTaskMrId, username, applicationName); - var result = routeNode.GetGeoJsonCoordinate(); + var result = routeNode.GetGeoJsonCoordinate(false); result.Should().BeEquivalentTo("[565931.4446905176,6197297.75114815]"); } diff --git a/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteSegmentTest.cs b/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteSegmentTest.cs index ba5092f..113d42f 100644 --- a/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteSegmentTest.cs +++ b/test/OpenFTTH.GDBIntegrator.RouteNetwork.Tests/RouteSegmentTest.cs @@ -92,7 +92,7 @@ public void GetGeoJsonCoordinate_ShouldReturnGeoJsonCoordinate_OnBeingCalled(str Coord = Convert.FromBase64String(coord), }; - var geoJson = routeSegment.GetGeoJsonCoordinate(); + var geoJson = routeSegment.GetGeoJsonCoordinate(false); geoJson.Should().BeEquivalentTo(expected); }