Skip to content
Permalink
Browse files
Fix TIME on identify for WMS provider
  • Loading branch information
pblottiere committed Jun 17, 2021
1 parent 724e56b commit 18a7e0353591284e5d859dee5979ea6f6494791c
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsmaptoolidentify.cpp
@@ -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;

@@ -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;

0 comments on commit 18a7e03

Please sign in to comment.