I am trying to convert from a GEOJSON FeatureCollection to an Feature Class, using the Python API. The FeatureCollection contains a single point and a single polygon geometries. The saving fails. I suppose because of the mixed geometry? Here is my code and the error:
geojson_file = r'C:\Users\xyz\Documents\Python_Scripts\SS_160_SnappedLoc_geoms.geojson'
with open(geojson_file) as f:
geojson = json.load(f)
arc_conv_out = arcgis.features.FeatureSet.from_geojson(geojson)
arc_conv_out.save(r"C:\Users\xyz\Documents\Python_Scripts\SS_160_SnappedLoc_geoms.geojson", "test_out")
ERROR:
AttributeError: module 'arcpy' has no attribute 'JSONToFeatures_conversion'
Anyone have any ideas?