Open sogunsemi opened 1 month ago
What is data
?
What is
data
?
It's a GeoJSON string that was generated using GeoPandas like this:
gdf = gpd.GeoDataFrame(
result_df, geometry=result_df["centroid"].apply(wkt.loads), crs="EPSG:4326"
)
data = gdf.to_json()
Describe the bug I recently upgraded my
arcgis
python library from 2.3.0 -> 2.4.0 and noticed the deprecation warning on the functiongis.content.add()
. According to the message, that function should still be available until3.0.0
but it throws a confusing error instead. My goal is to add a GeoJSON item into the root of my account with theOrganization
sharing level.To save time I updated my code to the recommended function
gis.content.folder.add()
. To use the newFolder.add()
function I created anItemProperties
object. The issue is that I don't see a way to replicate theaccess
parameter of the previousitem_properties
dictionary. I would like to set whatever the corresponding parameter is in theItemProperties
object toorg
but the closest thing I can find in the parameter list isaccess_information
but that does not seem to do anything.To Reproduce Steps to reproduce the behavior:
error:
The GeoJSON item is added at the
Owner
sharing level instead ofOrganization
in ArcGIS Online.Deprecation warning for
gis.content.add()
:Error message I get when I try to use the
gis.content.add()
function:Screenshots After I call the
gis.content.add()
function, the GeoJSON item should have theorg
icon (the one in the red box) next to it in the UI but it instead has the "person" icon indicating theOwner
sharing level.Expected behavior For my GeoJSON item to be created with the
org
sharing levelPlatform (please complete the following information):
2.4.0