Skip to content

Commit

Permalink
[bugfix] Fix WFS in metasearch
Browse files Browse the repository at this point in the history
Fixes #17347
  • Loading branch information
elpaso committed Nov 17, 2017
1 parent a0639b1 commit 1b79177
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/plugins/MetaSearch/dialogs/maindialog.py
Expand Up @@ -762,7 +762,9 @@ def add_to_ows(self):
conn_cmb = ows_provider.findChild(QWidget, 'cmbConnections')
connect = 'btnConnect_clicked'
elif service_type == 'OGC:WFS':
ows_provider.addWfsLayer.connect(self.iface.mainWindow().addWfsLayer)
def addVectorLayer(path, name):
self.iface.mainWindow().addVectorLayer(path, name, 'WFS')
ows_provider.addVectorLayer.connect(addVectorLayer)
conn_cmb = ows_provider.findChild(QWidget, 'cmbConnections')
connect = 'connectToServer'
elif service_type == 'OGC:WCS':
Expand All @@ -786,9 +788,9 @@ def add_to_ows(self):
conn_cmb.setCurrentIndex(index)
# only for wfs
if service_type == 'OGC:WFS':
ows_provider.on_cmbConnections_activated(index)
ows_provider.cmbConnections_activated(index)
elif service_type in ['ESRI:ArcGIS:MapServer', 'ESRI:ArcGIS:FeatureServer']:
ows_provider.on_cmbConnections_activated(index)
ows_provider.cmbConnections_activated(index)
getattr(ows_provider, connect)()

def show_metadata(self):
Expand Down

0 comments on commit 1b79177

Please sign in to comment.