Skip to content

Commit

Permalink
remove Arcgis Map Server
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Aug 18, 2023
1 parent ff67437 commit fd6f260
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions python/plugins/MetaSearch/dialogs/maindialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,13 +739,6 @@ def add_to_ows(self):
provider_name = 'wcs'
setting_node = QgsSettingsTree.node('connections').childNode('ows').childNode('connections')
data_url = item_data['wcs']
elif caller == 'mActionAddAms':
# TODO: this doesn't exist anymore?
service_type = 'ESRI:ArcGIS:MapServer'
sname = 'AMS'
dyn_param = []
provider_name = 'arcgismapserver'
data_url = item_data['ams'].split('MapServer')[0] + 'MapServer'
elif caller == 'mActionAddAfs':
service_type = 'ESRI:ArcGIS:FeatureServer'
sname = 'AFS'
Expand Down Expand Up @@ -800,10 +793,6 @@ def addVectorLayer(path, name):
ows_provider.addRasterLayer.connect(self.iface.addRasterLayer)
conn_cmb = ows_provider.findChild(QWidget, 'mConnectionsComboBox')
connect = 'mConnectButton_clicked'
elif service_type == 'ESRI:ArcGIS:MapServer':
ows_provider.addRasterLayer.connect(self.iface.addRasterLayer)
conn_cmb = ows_provider.findChild(QComboBox)
connect = 'connectToServer'
elif service_type == 'ESRI:ArcGIS:FeatureServer':
def addAfsLayer(path, name):
self.iface.addVectorLayer(path, name, 'afs')
Expand All @@ -822,7 +811,7 @@ def addAfsLayer(path, name):
# only for wfs
if service_type == 'OGC:WFS':
ows_provider.cmbConnections_activated(index)
elif service_type in ['ESRI:ArcGIS:MapServer', 'ESRI:ArcGIS:FeatureServer']: # noqa
elif service_type = 'ESRI:ArcGIS:FeatureServer':
ows_provider.cmbConnections_activated(index)
getattr(ows_provider, connect)()

Expand Down

0 comments on commit fd6f260

Please sign in to comment.