Skip to content

Commit

Permalink
ousing right wms reference request parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Samweli authored and nyalldawson committed Mar 5, 2020
1 parent c42f162 commit 0256951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -1104,15 +1104,15 @@ void QgsWmsProvider::addWmstParameters( QUrlQuery &query )
QgsDateTimeRange referenceRange = temporalCapabilities()->referenceTemporalRange();

if ( referenceRange.begin() == referenceRange.end() )
setQueryItem( query, QStringLiteral( "DIM_REFERENCE" ),
setQueryItem( query, QStringLiteral( "DIM_REFERENCE_TIME" ),
range.begin().toString( format ) );
else
{
QString extent = referenceRange.begin().toString( format );
extent.append( "/" );
extent.append( referenceRange.end().toString( format ) );

setQueryItem( query, QStringLiteral( "DIM_REFERENCE" ), extent );
setQueryItem( query, QStringLiteral( "DIM_REFERENCE_TIME" ), extent );
}
}

Expand Down

0 comments on commit 0256951

Please sign in to comment.