Skip to content

Commit

Permalink
Use M-values from the Coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
airbreather committed Sep 5, 2019
1 parent 4578ef8 commit 15294c5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/NetTopologySuite.IO.SqlServerBytes/SqlServerBytesWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,21 +207,18 @@ bool addFigure(Geometry g, FigureAttribute figureAttribute)
{
geography.ZValues.Add(coordinate.Z);
}

if (_emitM)
{
geography.MValues.Add(coordinate.M);
}
}

if (!pointsAdded)
{
return false;
}

if (_emitM)
{
foreach (double m in g.GetOrdinates(Ordinate.M))
{
geography.MValues.Add(m);
}
}

geography.Figures.Add(
new Figure
{
Expand Down

0 comments on commit 15294c5

Please sign in to comment.