Skip to content
Permalink
Browse files

fix #17562 broken legend uris

  • Loading branch information
rduivenvoorde authored and m-kuhn committed Nov 27, 2017
1 parent ed2e83c commit f6ffb00c9f0c6e39aed5c7714769e931f02c458a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/wms/qgswmsprovider.cpp
@@ -175,6 +175,9 @@ QgsWmsProvider::QgsWmsProvider( QString const &uri, const QgsWmsCapabilities *ca

QString QgsWmsProvider::prepareUri( QString uri )
{
// some services provide a percent/url encoded (legend) uri string, always decode here
uri = QUrl::fromPercentEncoding( uri.toUtf8() );

if ( uri.contains( QLatin1String( "SERVICE=WMTS" ) ) || uri.contains( QLatin1String( "/WMTSCapabilities.xml" ) ) )
{
return uri;

0 comments on commit f6ffb00

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