Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

In my industry it is common to create preliminary design maps for point locations that have a unique identifier. Upon the actual construction on the design, points change location based on construction.

Is there any way in ArcGIS 10.0 Editor license to append the new XY information (update the geometry) for those points? Python is preferred.

share|improve this question

2 Answers 2

If you are working with a text file, there are two examples here which offer slightly different approaches. You will have to update your coordinates and rebuild each time a change is made.

share|improve this answer

You could use the following script that will update a point location. You'll have to flesh it out for a full program, but it's a start:

import arcpy
arcpy.env.workspace = "Workspace/Path"
cur = arcpy.UpdateCursor("Feature_Class", "ID = 'xxxx'") //just an example, you can use any query
pnt = arcpy.Point()
pnt.X = 100
pnt.Y = 100
shpfield = arcpy.Describe("Feature_Class").shapeFieldName
for row in cur:
     row.setValue(shpfield,pnt)
     cur.updateRow(row)

del row,cur,pnt  

Man page at http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/UpdateCursor/000v0000003m000000/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.