I am trying to use the arcpy.da.InsertCursor to add simple points to a feature class, but it doesn't work for me as every single point I add ends up somewhere near Paris. Here's the simplest code block that doesn't work for me:
arcpy.CreateFeatureclass_management(' (my path here) ...\Map.gdb','Hotspots2', 'POINT')
a = arcpy.Point(7, 7)
cursor = arcpy.da.InsertCursor("Hotspots2",["SHAPE@XY"])
cursor.insertRow([a])
del cursor
It ends up here:
at coordinate ~ (3.3, 48). Whatever coordinates I enter into a don't matter for the outcome. If I change a to a point geometry it doesn't work. If I use SHAPE@ and a point geometry it also doesn't work. Every darn point ends up there. What am I doing wrong and can someone test to see if they get the same result??