Skip to content

Commit

Permalink
fix non temporal calculated mesh dataset (#37243)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec committed Jun 16, 2020
1 parent 63cb42c commit 65ba272
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/providers/mdal/qgsmdalprovider.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 65ba272

Please sign in to comment.