A feature collection item cannot be added to the ArcGIS Online content page using the ArcGIS API for Python gis.content.add() method.
上次发布: September 21, 2021ArcGIS API for Python
漏洞 ID 编号
BUG-000134041
已提交
September 22, 2020
上次修改时间
June 5, 2024
适用范围
ArcGIS API for Python
找到的版本
1.8.1
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The original code used to add the item has the text parameter formatted incorrectly. The correct code to add the item is:
item = gis.content.add(item_properties = {"title": "random_test_3",
"tags": "test,second_trial,item_from_df_csv_params",
"snippet": "random_test_data item created with csv parameters",
"description": "random_test_data item from csv with lat_long params",
"text": json.dumps({"layers": [dict(fc.layer)], 'showLegend' : True}),
"type": "Feature Collection",
"typeKeywords": "Data, Feature Collection, Singlelayer"})