How do I insert a polygon object into a feature class?
I've written the following code based off the Writing Geometries (https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/writing-geometries.htm) guide, unfortunately all of those examples are starting from scratch and I extracted my polygon objects from the .getExtents().polygon function in the camera class. This creates the row and adds the name but there aren't any of the polygons.
for name, poly in polyDict.items(): with arcpy.da.InsertCursor(gdb_fc, ['Name', 'SHAPE@XY']) as cursor: cursor.insertRow([name, poly])
I've also tried adding an index to the poly variable to try the array but that doesn't work either. I'm obviously doing something wrong but have no idea as to what. I've tried it with a single value which doesnt work, I've tried extracting the XMax, YMax, XMin, YMin from the extent, I've tried 20 other things and I just can't figure it out.