> Script Details
Asymmetric Polyline/Polygon Buffers - improved
report inappropriate content
May 26 2004
Status of work
ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.
This code creates buffers around polylines or polygon boundaries with a different buffer distance for each side of the line.
The code works by creating small polygons along the length of the polyline according to the buffer distances specified by the user. Rectangles are created for each segment, circular "pies" are created for each vertex, and full circles are made at each endpoint. These component polygons are then unioned into a single buffer polygon for each polyline. See the HTML document for an illustration of this procedure.
This approach avoids the problems that were encountered in an earlier version of this script, which used the IConstructCurve:ConstructOffset method. That method sometimes produced non-simple geometries and left voids inside the buffers.