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.

I want to duplicate a polygon feature class and offset all of the polygons by about 10 feet in both the x and y directions. Is this possible to do using arcpy, or are there any geoprocessing tools that could help me do this?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

It could be done with arcpy. Take a look at my post on updating a feature's geometry. Instead of using an update cursor and modifying a the geometry in place, you'd create a new feature class, use a search cursor on your original feature class and write new geometries based on each feature in your original feature class.

share|improve this answer
    
Thanks. Rather than defining a point and shifting it, how would I change this line of code to suite the shifting of a polygon? pnt = arcpy.Point(row.getValue(shapeName).getPart(0).X + 0.5, row.getValue(shapeName).getPart(0).Y + 0.5) –  Tanner Nov 25 '10 at 0:48

As stated above, I would export data to a new FC and then turn on editing, select all and use the move command.

share|improve this answer

I would have thought you'd do a Copy, Paste, then Move. The Editor menu's Move function lets you specify a delta x and y. However, I can't seem to find that function in arcpy.

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.