Skip to content
Permalink
Browse files

fix non temporal calculated mesh dataset (#37243)

  • Loading branch information
vcloarec committed Jun 16, 2020
1 parent 63cb42c commit 65ba272cb7d42ec5b89d262f205ec061ad63ed45
Showing with 8 additions and 3 deletions.
  1. +8 −3 src/providers/mdal/qgsmdalprovider.cpp
@@ -306,8 +306,13 @@ bool QgsMdalProvider::persistDatasetGroup(

MDAL_G_closeEditMode( g );

emit datasetGroupsAdded( 1 );
emit dataChanged();
if ( MDAL_LastStatus() == 0 )
{
mExtraDatasetUris << outputFilePath;
addGroupToTemporalCapabilities( datasetGroupCount() - 1 );
emit datasetGroupsAdded( 1 );
emit dataChanged();
}

return false;
}
@@ -587,7 +592,7 @@ QgsMeshDatasetGroupMetadata QgsMdalProvider::datasetGroupMetadata( int groupInde
QString referenceTimeString( MDAL_G_referenceTime( group ) );
QDateTime referenceTime = QDateTime::fromString( referenceTimeString, Qt::ISODate );

bool isTemporal = MDAL_G_datasetCount( group ) > 1;
bool isTemporal = MDAL_G_isTemporal( group );

QgsMeshDatasetGroupMetadata meta(
name,

0 comments on commit 65ba272

Please sign in to comment.
You can’t perform that action at this time.