import arcpy shapeField = arcpy.Describe(r"C:\2011\ACCESOS\accesos_yan_loc_psad56.shp").ShapeFieldName deltaX = 10 deltaY = 10 c = arcpy.UpdateCursor(r"C:\2011\ACCESOS\accesos_yan_loc_psad56.shp") for row in c: partnum = 0 feat = row.getValue(shapeField) for part in feat: for pnt in feat.getPart(partnum): pnt.X = pnt.X + deltaX pnt.Y = pnt.Y + deltaY c.updateRow(row)
shapeField = arcpy.Describe("Feature Class").ShapeFieldName deltaX = 10 deltaY = 10 c = arcpy.UpdateCursor("Feature Class") for row in c: partnum = 0 feat = row.getValue(shapefieldname) for part in feat: for pnt in feat.getPart(partnum): pnt.X = pnt.X + deltaX pnt.Y = pnt.Y + deltaY c.updateRow(row)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.