I am new to ArcGIS. I want to import a geojson file into arcgis as a hosted feature layer.
I am able to do that with GUI.
However, I do not know how to do that with arcgis python api. Thank you!!
gis = GIS(url=communal_url, username=USERNAME, password=PASSWORD, verify_cert=False) with open('my.geojson') as data: geoData = json.load(data) empty_service_item = gis.content.create_service(name='test_feature', service_type='featureService') new_layer= FeatureLayerCollection.fromitem(empty_service_item) new_layer.manager.overwrite(geoData)
Solved! Go to Solution.
Actually, I think I found my answer.
HI, can you explain how you figured this out?