Hi All,
I'm trying to convert my geodataframe to a feature layer so I can overlay it with other layers from AGOL.
I've been researching for a way to do it; the best way is hosted feature layer. When I publish to my content it only has a table view but I want it has polygons as well.
I was following the documentation from ESRI.
Hi,
The way that I have done this in the past is like this:
Something like this:
from arcgis.features import GeoAccessor
sdf = GeoAccessor.from_geodataframe(you_gdf)
lyr = sdf.spatial.to_featurelayer("layer_name")
Thanks for your reply. I tried with that solution as well, but this error persists!
AttributeError: `np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.
I tried to reinstall numpy but still no luck. Is there any way to overlay data from gdf to an imagery layer from living atlas?
Hmm, that error makes me think maybe the gdf needs a bit of cleanup before getting converted to a sedf? When does that error show up? On the publish attempt, or when trying to do the conversion?