From e75504ed446bb0bd2f5bf5649c787fe61adc9710 Mon Sep 17 00:00:00 2001 From: adv Date: Thu, 28 Nov 2013 06:20:45 +0000 Subject: [PATCH] Convert the altitude for bathymetry to negative number during it reading from the file (Bug #130). --- src/HYDROData/HYDROData_Bathymetry.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HYDROData/HYDROData_Bathymetry.cxx b/src/HYDROData/HYDROData_Bathymetry.cxx index 95c0affd..0b61749c 100644 --- a/src/HYDROData/HYDROData_Bathymetry.cxx +++ b/src/HYDROData/HYDROData_Bathymetry.cxx @@ -370,9 +370,10 @@ bool HYDROData_Bathymetry::importFromXYZFile( QFile& theFile, bool isXOk = false, isYOk = false, isZOk = false; + // We automaticaly convert the z value to a negative number aPoint.SetX( anX.toDouble( &isXOk ) ); aPoint.SetY( anY.toDouble( &isYOk ) ); - aPoint.SetZ( aZ.toDouble( &isZOk ) ); + aPoint.SetZ( -aZ.toDouble( &isZOk ) ); if ( !isXOk || !isYOk || !isZOk ) return false; -- 2.39.2