Skip to content

Commit

Permalink
optionally use base url for WMTS GetTile requests (implements #8595)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 31, 2013
1 parent 827ff93 commit 8248239
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions i18n/qgis_de.ts
Expand Up @@ -31570,8 +31570,8 @@ Note: giving the password is optional. It will be requested interactivly, when n
</message>
<message>
<location filename="../src/ui/qgsnewhttpconnectionbase.ui" line="157"/>
<source>Ignore GetMap URI reported in capabilities</source>
<translation>Gemeldete GetMap-URI aus Diensteigenschaften ignorieren</translation>
<source>Ignore GetMap/GetTile URI reported in capabilities</source>
<translation>Gemeldete GetMap/GetTile-URI aus Diensteigenschaften ignorieren</translation>
</message>
<message>
<location filename="../src/ui/qgsnewhttpconnectionbase.ui" line="164"/>
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -889,7 +889,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
if ( !getTileUrl().isNull() )
{
// KVP
QUrl url( getTileUrl() );
QUrl url( mIgnoreGetMapUrl ? mBaseUrl : getTileUrl() );

// compose static request arguments.
setQueryItem( url, "SERVICE", "WMTS" );
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsnewhttpconnectionbase.ui
Expand Up @@ -154,7 +154,7 @@
<item row="12" column="0" colspan="2">
<widget class="QCheckBox" name="cbxIgnoreGetMapURI">
<property name="text">
<string>Ignore GetMap URI reported in capabilities</string>
<string>Ignore GetMap/GetTile URI reported in capabilities</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 8248239

Please sign in to comment.