Skip to content
Permalink
Browse files

[bugfix] [MetaSearch] fix Esri ArcGIS service chaining (fixes #17347)

  • Loading branch information
tomkralidis committed Nov 17, 2017
1 parent 1dab575 commit 3ea8b74e18762b4981fdb18ed730a69f82f45ef9
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/MetaSearch/dialogs/maindialog.py
@@ -772,11 +772,13 @@ def addVectorLayer(path, name):
conn_cmb = ows_provider.findChild(QWidget, 'mConnectionsComboBox')
connect = 'mConnectButton_clicked'
elif service_type == 'ESRI:ArcGIS:MapServer':
ows_provider.addAction(self.iface.actionAddAmsLayer())
ows_provider.addRasterLayer.connect(self.iface.addRasterLayer)
conn_cmb = ows_provider.findChild(QComboBox)
connect = 'connectToServer'
elif service_type == 'ESRI:ArcGIS:FeatureServer':
ows_provider.addAction(self.iface.actionAddAfsLayer())
def addAfsLayer(path, name):
self.iface.mainWindow().addVectorLayer(path, name, 'afs')
ows_provider.addVectorLayer.connect(addAfsLayer)
conn_cmb = ows_provider.findChild(QComboBox)
connect = 'connectToServer'
ows_provider.setModal(False)

0 comments on commit 3ea8b74

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