Skip to content

Commit

Permalink
version 1.3.1 - showLogo disabled for QGIS layers
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed May 3, 2018
1 parent 2672ee6 commit 2b575a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions SentinelHub/SentinelHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,11 @@ def get_wms_uri(self):

# Every parameter that QGIS layer doesn't use by default must be in url
# And url has to be encoded
url = '{}wms/{}?TIME={}&priority={}&maxcc={}'.format(self.base_url, self.instance_id, self.get_time(),
Settings.parameters['priority'],
Settings.parameters['maxcc'])
url = '{}wms/{}?showLogo={}&TIME={}&priority={}&maxcc={}'.format(self.base_url, self.instance_id,
Settings.parameters_wms['showLogo'],
self.get_time(),
Settings.parameters['priority'],
Settings.parameters['maxcc'])
return '{}url={}'.format(uri, quote_plus(url))

def get_wmts_uri(self):
Expand All @@ -400,9 +402,11 @@ def get_wmts_uri(self):
request_parameters = list(Settings.parameters_wmts.items()) + list(Settings.parameters.items())
for parameter, value in request_parameters:
uri += '{}={}&'.format(parameter, value)
url = '{}wmts/{}?TIME={}&priority={}&maxcc={}'.format(self.base_url, self.instance_id, self.get_time(),
Settings.parameters['priority'],
Settings.parameters['maxcc'])
url = '{}wmts/{}?showLogo={}&TIME={}&priority={}&maxcc={}'.format(self.base_url, self.instance_id,
Settings.parameters_wmts['showLogo'],
self.get_time(),
Settings.parameters['priority'],
Settings.parameters['maxcc'])
return '{}url={}'.format(uri, quote_plus(url))

def get_wcs_url(self, bbox, crs=None):
Expand Down Expand Up @@ -1067,6 +1071,7 @@ def change_exact_date(self):
"""
if self.dockwidget.exactDate.isChecked():
self.dockwidget.time1.hide()
self.dockwidget.timeLabel.hide()
self.move_calendar('time0')
else:
if self.time0 and self.time1 and self.time0 > self.time1:
Expand All @@ -1075,6 +1080,7 @@ def change_exact_date(self):
self.dockwidget.time1.setText(self.time1)

self.dockwidget.time1.show()
self.dockwidget.timeLabel.show()

def change_instance_id(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion SentinelHub/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name=SentinelHub
qgisMinimumVersion=2.0
qgisMaximumVersion=3.99
description=SentinelHub plugin enables users to harness power of Sentinel Hub services directly from QGIS.
version=1.3.0
version=1.3.1
author=Sinergise
[email protected]

Expand Down

0 comments on commit 2b575a6

Please sign in to comment.