//#define _DEVDEBUG_
#include "HYDRO_trace.hxx"
-const int BLOCK_SIZE = 1000;
+const int BLOCK_SIZE = 10000;
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
bool anIsAltitudesInverted = IsAltitudesInverted();
while ( !theFile.atEnd() )
{
- QString aLine = theFile.readLine().simplified();
- if ( aLine.isEmpty() )
+ std::string aLine = theFile.readLine().simplified().toStdString();
+ if ( aLine.empty() )
continue;
- QStringList aValues = aLine.split( ' ', QString::SkipEmptyParts );
- if ( aValues.length() < 3 )
+ HYDROData_Bathymetry::AltitudePoint aPoint;
+ if( sscanf( aLine.c_str(), "%lf %lf %lf", &aPoint.X, &aPoint.Y, &aPoint.Z )!=3 )
return false;
- HYDROData_Bathymetry::AltitudePoint aPoint;
+ /*QStringList aValues = aLine.split( ' ', QString::SkipEmptyParts );
+ if ( aValues.length() < 3 )
+ return false;
QString anX = aValues.value( 0 );
QString anY = aValues.value( 1 );
aPoint.Z = aZ.toDouble( &isZOk );
if ( !isXOk || !isYOk || !isZOk )
- return false;
+ return false;*/
if ( HYDROData_Tool::IsNan( aPoint.X ) || HYDROData_Tool::IsInf( aPoint.X ) ||
HYDROData_Tool::IsNan( aPoint.Y ) || HYDROData_Tool::IsInf( aPoint.Y ) ||