I have a script that takes field edits from one shapefile and 'appends' them into the master shapefile (same schema).
with arcpy.da.SearchCursor("callback_lyr","*") as ncur: for nrow in ncur: with arcpy.da.InsertCursor("masterCallback_lyr", ("*")) as mcur: mcur.insertRow(nrow)However, when I open the master shapefile the rows are created but they have no spatial location.Alternatively, if I do:
with arcpy.da.SearchCursor("callback_lyr","Shape@") as ncur: for nrow in ncur: with arcpy.da.InsertCursor("masterCallback_lyr", ("Shape@")) as mcur: mcur.insertRow(nrow)Then the points have spatial location but no attributes.
Is there a clean way to do this without creating more cursors and banging my head against the wall?
أكثر...
with arcpy.da.SearchCursor("callback_lyr","*") as ncur: for nrow in ncur: with arcpy.da.InsertCursor("masterCallback_lyr", ("*")) as mcur: mcur.insertRow(nrow)However, when I open the master shapefile the rows are created but they have no spatial location.Alternatively, if I do:
with arcpy.da.SearchCursor("callback_lyr","Shape@") as ncur: for nrow in ncur: with arcpy.da.InsertCursor("masterCallback_lyr", ("Shape@")) as mcur: mcur.insertRow(nrow)Then the points have spatial location but no attributes.
Is there a clean way to do this without creating more cursors and banging my head against the wall?
أكثر...