Adding new points to an existing data layer

3513
3
02-27-2015 08:33 AM
JakeLysgaard
New Contributor

Hello,

 

I am trying to add additional points to a data layer that already exists. I need to add approximately 12 points to the existing map. What would be the best tool to use to accomplish this? I have tried to merge the files but that just deletes the existing attributes in the table that I need. Thanks

0 Kudos
3 Replies
TomSellsted
MVP Regular Contributor

Jake,

Python might be a good choice for you.  You will be able to manage the fields that you want to populate and add the new points very quickly.  Something like:

import arcpy

# Create insert cursor
fc = arcpy.InsertCursor("c:/feature_class_add_points_to")
rows = arcpy.SearchCursor("c:/features_to_add")
# 
for row in rows:
  feat = fc.newRow()
  feat.shape = row.shape
  # set values for any other fields you want
  feat.setValue("otherfield",row.otherfield)
  fc.insertRow(feat)

# Delete cursor and row objects to remove locks on the data
del fc
del row
del rows

Regards,

Tom

0 Kudos
DarrenWiens2
MVP Honored Contributor

When you use the Merge tool, make sure you match up the fields you want to populate in the field mapping section. Instructions on how to use the field mappings control can be found here.

edit: technically, it sounds like you want the Append tool (adds features to an existing feature class rather than creating a new feature class), but Merge is nice to use for practice.

0 Kudos
TomSellsted
MVP Regular Contributor

Jake,

You could also use the data loader or object loader.  More information at:

ArcGIS Help - Loading data into existing feature classes or tables

Regards,

Tom

0 Kudos