File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
python/plugins/MetaSearch/dialogs Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -762,7 +762,9 @@ def add_to_ows(self):
762
762
conn_cmb = ows_provider .findChild (QWidget , 'cmbConnections' )
763
763
connect = 'btnConnect_clicked'
764
764
elif service_type == 'OGC:WFS' :
765
- ows_provider .addWfsLayer .connect (self .iface .mainWindow ().addWfsLayer )
765
+ def addVectorLayer (path , name ):
766
+ self .iface .mainWindow ().addVectorLayer (path , name , 'WFS' )
767
+ ows_provider .addVectorLayer .connect (addVectorLayer )
766
768
conn_cmb = ows_provider .findChild (QWidget , 'cmbConnections' )
767
769
connect = 'connectToServer'
768
770
elif service_type == 'OGC:WCS' :
@@ -786,9 +788,9 @@ def add_to_ows(self):
786
788
conn_cmb .setCurrentIndex (index )
787
789
# only for wfs
788
790
if service_type == 'OGC:WFS' :
789
- ows_provider .on_cmbConnections_activated (index )
791
+ ows_provider .cmbConnections_activated (index )
790
792
elif service_type in ['ESRI:ArcGIS:MapServer' , 'ESRI:ArcGIS:FeatureServer' ]:
791
- ows_provider .on_cmbConnections_activated (index )
793
+ ows_provider .cmbConnections_activated (index )
792
794
getattr (ows_provider , connect )()
793
795
794
796
def show_metadata (self ):
You can’t perform that action at this time.
0 commit comments