Skip to content

Commit

Permalink
now add coords to the coordinates collection so we do not get empty l…
Browse files Browse the repository at this point in the history
…inestring (#108)
  • Loading branch information
runeanielsen authored Mar 25, 2023
1 parent 1a1fb98 commit 6de8117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OpenFTTH.GDBIntegrator.RouteNetwork/RouteSegment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public virtual string GetGeoJsonCoordinate(bool round)
var geoJson = stringWriter.ToString();
return JObject.Parse(geoJson)["coordinates"].ToString(Formatting.None);
};

}

public virtual LineString GetLineString()
Expand Down Expand Up @@ -83,6 +82,8 @@ private LineString RoundLineString(LineString inputLineString)
{
c.Z = Coordinate.NullOrdinate;
}

newCoords.Add(c);
}

return new LineString(newCoords.ToArray());
Expand Down

0 comments on commit 6de8117

Please sign in to comment.