Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Jul 11, 2023
1 parent 9f91ab9 commit 2b09403
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/dev/qgis_console/ajout_couche_efs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
from owslib.wfs import WebFeatureService

# EFS ArcGisServer --> marche pas
wfs_url_base = "crs='EPSG:2154' filter='' url='https://carto.isogeo.net/server/rest/services/scan_services_1/EMS_EFS_WMS_WFS/FeatureServer/2' table='' sql=''"
wfs_url_base = "crs='EPSG:2154' filter='' url='https://carto.isogeo.net/server/rest/services/scan_services_1/EMS_EFS_WMS_WFS/FeatureServer/11' table='' sql=''"
wfs_url_base = "crs='EPSG:2154' url='https://carto.isogeo.net/server/rest/services/scan_services_1/EMS_EFS_WMS_WFS/FeatureServer/10'"

lyr = QgsVectorLayer(wfs_url_base, baseName="efs_arcgisserver", providerLib="arcgisfeatureserver")

QgsProject.instance().addMapLayer(lyr)

#if not lyr.isValid():
# QgsProject.instance().removeMapLayer(lyr.id())
#else:
# pass

0 comments on commit 2b09403

Please sign in to comment.