Adding an external WFS to ArcGIS Online

489
2
04-14-2022 01:01 AM
JosephHilliard94
New Contributor III

Hi there,

I am trying to create add content to ArcGIS Online using a Python script via the ArcGIS notebooks. Can you add external WFS/WMS using the below? 

import arcgis
from arcgis.gis import GIS
gis = GIS("home")

data_path = r'This is the WFS URL'

HBSMR_Properties = {'title':'HBSMR Test2','tags':'test', 'type':'WFS'}

HBSMR_item = gis.content.add(item_properties=HBSMR_Properties, data = data_path)

It manages to add to my content but no features appear.

Thanks!

Joe

0 Kudos
2 Replies
ABishop
MVP Regular Contributor

Hello Joseph,

I found this information that may assist you in your task: https://pro.arcgis.com/en/pro-app/latest/help/data/services/use-wfs-services.htm 

Amanda Bishop, GISP
0 Kudos
JosephHilliard94
New Contributor III

Thank you!

0 Kudos