sibartlett / Geo

A geospatial library for .NET
https://www.nuget.org/packages/Geo/
GNU Lesser General Public License v3.0
176 stars 39 forks source link

Fix bugs in converting Coordinate to Is3D during serialization. #29

Closed SabriAl-Safi closed 4 years ago

SabriAl-Safi commented 7 years ago

When serializing waypoints, tracks or routes using Gpx10Serializer, or waypoints using Gpx11Serializer, an exception is thrown if the Coordinate objects representing the GPS points return false for "Is3D". This is due to the wrong order of statements in some ternary expressions in the code.