I've got a spatially enabled dataframe (SEDF) I'm trying to convert to a GeoJSON. Normally I do this as a 2 step process by creating a featureclass then converting that into a GeoJSON with SEDF.spatial.to_featureclass
and arcpy.conversion.FeaturesToJSON
; however, featureclasses can be cumbersome and it would be nice to skip this step altogether.
ESRI's SEDF website (https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/) states that you can export an SEDF in many formats, including GeoJSON; however, I don't see an example of this process anywhere.
Does anyone know how this is done?