Building on ArcGIS: inside buffer with attributes?, I'd like to be able to create multiple ring buffers, while retaining (and possibly dissolving on) attribute values. How can this be done?
|
OK, how I did this, is loop through creating ring buffers on objects, and saving the output as a new featureclass in a standlone datasets collection. I then merged the featureclasses, like so:
Then dissolved them
The buffers are created in a loop and stored in arcpy.env.workspace = scratchDB + "mytmpBuff.gdb/Polygons/" before I later loop through them. It works, or it does if I have understood your issue correctly! |
|||
|
|
|
Below is my answer. Although it bears little resemblance now to Hairy's example, it was only by stepping through and understanding his code that I was able to find my own solution, so thank you! multi-ring-buffer.py: Create multiple ring buffers, keeping named attributes of parent feature class. Process:
Usage:
Workspace must exist. The width and attribute parameters must be comma separated and have no spaces. Requires Arcgis 10, Arcinfo license level. (c) 2012 Environment Yukon, matt.wilkie@gov.yk.ca Licensed under the MIT license: http://www.opensource.org/licenses/MIT
In source code management at http://code.google.com/p/maphew/source/browse/arcplus/AttributedMultiRingBuffer.py The resulting ring buffers displayed with multi-field unique values in arcmap:
|
|||
|
|

