Skip to content
Permalink
Browse files

ousing right wms reference request parameter

  • Loading branch information
Samweli authored and nyalldawson committed Feb 19, 2020
1 parent c42f162 commit 02569516056e8ad741f0f3fc7eed1c2d7ed9ef5c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/wms/qgswmsprovider.cpp
@@ -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 );
}
}

0 comments on commit 0256951

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