Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix TIME on identify for WMS provider
  • Loading branch information
pblottiere committed Jun 17, 2021
1 parent 724e56b commit 18a7e03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgsmaptoolidentify.cpp
Expand Up @@ -944,7 +944,7 @@ bool QgsMapToolIdentify::identifyRasterLayer( QList<IdentifyResult> *results, Qg
if ( !layer )
return false;

QgsRasterDataProvider *dprovider = layer->dataProvider();
QgsRasterDataProvider *dprovider = layer->dataProvider()->clone();
if ( !dprovider )
return false;

Expand All @@ -956,6 +956,8 @@ bool QgsMapToolIdentify::identifyRasterLayer( QList<IdentifyResult> *results, Qg
{
if ( !layer->temporalProperties()->isVisibleInTemporalRange( identifyContext.temporalRange() ) )
return false;

dprovider->temporalCapabilities()->setRequestedTemporalRange( identifyContext.temporalRange() );
}

QgsPointXY pointInCanvasCrs = point;
Expand Down

0 comments on commit 18a7e03

Please sign in to comment.