mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
parent
a0639b1a20
commit
1b79177bc9
@ -762,7 +762,9 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
|||||||
conn_cmb = ows_provider.findChild(QWidget, 'cmbConnections')
|
conn_cmb = ows_provider.findChild(QWidget, 'cmbConnections')
|
||||||
connect = 'btnConnect_clicked'
|
connect = 'btnConnect_clicked'
|
||||||
elif service_type == 'OGC:WFS':
|
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')
|
conn_cmb = ows_provider.findChild(QWidget, 'cmbConnections')
|
||||||
connect = 'connectToServer'
|
connect = 'connectToServer'
|
||||||
elif service_type == 'OGC:WCS':
|
elif service_type == 'OGC:WCS':
|
||||||
@ -786,9 +788,9 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
|||||||
conn_cmb.setCurrentIndex(index)
|
conn_cmb.setCurrentIndex(index)
|
||||||
# only for wfs
|
# only for wfs
|
||||||
if service_type == 'OGC: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']:
|
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)()
|
getattr(ows_provider, connect)()
|
||||||
|
|
||||||
def show_metadata(self):
|
def show_metadata(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user