#include "HYDROData_Tool.h"
#include "HYDROData_PolylineXY.h"
+#include <boost/math/special_functions/fpclassify.hpp>
+
#include <gp_XY.hxx>
#include <gp_XYZ.hxx>
if ( !isXOk || !isYOk || !isZOk )
return false;
+ if ( boost::math::isnan( aPoint.X() ) || boost::math::isinf( aPoint.X() ) ||
+ boost::math::isnan( aPoint.Y() ) || boost::math::isinf( aPoint.Y() ) ||
+ boost::math::isnan( aPoint.Z() ) || boost::math::isinf( aPoint.Z() ) )
+ return false;
+
// Invert the z value if requested
if ( anIsAltitudesInverted )
aPoint.SetZ( -aPoint.Z() );