I am told to update a shapefile (add new records to it) before I can use it to produce a map. To update the shapefile, I opened its attribute table and then used "Start Editing" and "Add new features" option to enter the new records.
As I updated the shapefile this way (by editing the table and adding the new records), I think that the XY coordinates were not lost for the old records.
However, I am wondering if I have to geocode again the shapefile in order for the new records to have a positional location attached to them and then use the exported shapefile (obtained after geocoding) to make my map?
Thanks.
I am not certain what you did but did you open the dbf in something like excel and add the records.
You cannot do that with a shapefile. you will lose everything or if you don't lose it you can scramble the data records. The dbf rows are tied to a specific graphical feature. if you make changes to the dbf you alter which record is tied to which graphic.
if you need to edit a shapefile you do it in an ArcGIS session.
I edited the shapefile to add the new records in an ArcGIS session.
First I thought about exporting the shapefile to Excel and then add the new records there, but I didn't do it. Because I thought the old records would lose their XY coordinates.
So, after I added the new records in an ArcGis session, do I have to geocode the shapefile(table) again and use the new shapefile obtained from geocoding to make my map?
.
Is this a point shapefile? If so, maybe you can do a field calc on the fields holding the x and y coordinates using getx and gety on the shape field which should be available through the field calculator.
If you added them in an ArcGIS session why would you need to geocode them. They should already be placed where you want them. Typically geocoding is performed on a set of data that is not a shape file or feature class.
Is this a point shapefile? If so, maybe you can do a field calc on the fields holding the x and y coordinates using getx and gety on the shape field which should be available through the field calculator.
You should geocode the new data separately then merge the two files together