@@ -170,14 +170,14 @@ QDateTime ReosGribGriddedRainfallProvider::startTime( int index ) const
170
170
{
171
171
switch ( mSourceValueType )
172
172
{
173
- case ValueType::CumulativeHeight :
173
+ case ValueType::Cumulative :
174
174
if ( index == 0 )
175
175
return QDateTime::fromSecsSinceEpoch ( mReferenceTime , Qt::UTC );
176
176
else if ( index > 0 )
177
177
return QDateTime::fromSecsSinceEpoch ( mFrames .at ( index - 1 ).validTime , Qt::UTC );
178
178
break ;
179
- case ValueType::Height :
180
- case ValueType::Intensity :
179
+ case ValueType::CumulativeOnTimeStep :
180
+ case ValueType::Instantaneous :
181
181
return QDateTime ();
182
182
break ;
183
183
}
@@ -189,11 +189,11 @@ QDateTime ReosGribGriddedRainfallProvider::endTime( int index ) const
189
189
{
190
190
switch ( mSourceValueType )
191
191
{
192
- case ValueType::CumulativeHeight :
192
+ case ValueType::Cumulative :
193
193
return QDateTime::fromSecsSinceEpoch ( mFrames .at ( index ).validTime , Qt::UTC );
194
194
break ;
195
- case ValueType::Height :
196
- case ValueType::Intensity :
195
+ case ValueType::CumulativeOnTimeStep :
196
+ case ValueType::Instantaneous :
197
197
return QDateTime ();
198
198
break ;
199
199
}
@@ -223,7 +223,7 @@ const QVector<double> ReosGribGriddedRainfallProvider::data( int index ) const
223
223
224
224
switch ( mSourceValueType )
225
225
{
226
- case ValueType::CumulativeHeight :
226
+ case ValueType::Cumulative :
227
227
{
228
228
QVector<double > ret ( raster.values ().count (), std::numeric_limits<double >::quiet_NaN () ) ;
229
229
@@ -254,8 +254,8 @@ const QVector<double> ReosGribGriddedRainfallProvider::data( int index ) const
254
254
return ret;
255
255
}
256
256
break ;
257
- case ValueType::Height :
258
- case ValueType::Intensity :
257
+ case ValueType::CumulativeOnTimeStep :
258
+ case ValueType::Instantaneous :
259
259
{
260
260
QVector<double > ret ( raster.values ().count (), std::numeric_limits<double >::quiet_NaN () ) ;
261
261
for ( int i = 0 ; i < ret.count (); ++i )
@@ -357,12 +357,12 @@ QString ReosGribGriddedRainfallProvider::uri( const QString &sourcePath, const Q
357
357
358
358
switch ( valueType )
359
359
{
360
- case ValueType::CumulativeHeight :
360
+ case ValueType::Cumulative :
361
361
stringValueType = QStringLiteral ( " cumulative" );
362
362
break ;
363
- case ValueType::Height :
363
+ case ValueType::CumulativeOnTimeStep :
364
364
stringValueType = QStringLiteral ( " height" );
365
- case ValueType::Intensity :
365
+ case ValueType::Instantaneous :
366
366
stringValueType = QStringLiteral ( " intensity" );
367
367
break ;
368
368
}
@@ -393,18 +393,18 @@ ReosGriddedRainfallProvider::ValueType ReosGribGriddedRainfallProvider::valueTyp
393
393
{
394
394
const QStringList part = uri.split ( QStringLiteral ( " ::" ) );
395
395
if ( part.count () < 3 )
396
- return ValueType::Height ;
396
+ return ValueType::CumulativeOnTimeStep ;
397
397
398
398
if ( part.at ( 2 ) == QStringLiteral ( " cumulative" ) )
399
- return ValueType::CumulativeHeight ;
399
+ return ValueType::Cumulative ;
400
400
401
401
if ( part.at ( 2 ) == QStringLiteral ( " intensity" ) )
402
- return ValueType::Intensity ;
402
+ return ValueType::Instantaneous ;
403
403
404
404
if ( part.at ( 2 ) == QStringLiteral ( " height" ) )
405
- return ValueType::Height ;
405
+ return ValueType::CumulativeOnTimeStep ;
406
406
407
- return ValueType::Height ;
407
+ return ValueType::CumulativeOnTimeStep ;
408
408
}
409
409
410
410
bool ReosGribGriddedRainfallProvider::sourceIsValid ( const QString &source, ReosModule::Message &message ) const
0 commit comments