Lets say I have two feature class,
- Points A. All the points have a unique point_id.
- Points B, these points have an ID that matches the point_id in the Points A class.
I can join these two tables using the point_id.
Now I would like to update the geometry of the points A feature class with the geometry with points B. This would be trivial in an SQL server...It would be very useful in ArcGIS file geodatabases.
UPDATE Point_A a
INNER JOIN Point_B
Perhaps this could apply to any type of geometry also.
This be done using Python. You can do an arcpy.da.UpdateCursor (point a) and store the point_id as a variable. Then nest an arcpy.da.SearchCursor on the second feature class (point b), with an if statement.
If point_id1 == point_id2:
geometery1 = geometry2
Here's the link to UpdateCursor. And note, "Geometry properties can be accessed by specifying the token SHAPE@ in the list of fields."
UpdateCursor—Help | ArcGIS for Desktop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.