缓冲分析(BufferAnalysis)的结果是一个面状要素——即缓冲要素,点状要素、线状要素和面状要素,被缓冲分析功能处理过之后,它们的周围产生一个缓冲区域,该区域即新产生的面状要素。
在缓冲方向上,点状要素和线状要素只能进行向外缓冲,面状要素可以双向缓冲——向外缓冲和向内缓冲。
在ArcGIS Engine中,缓冲分析由ITopologicalOperator.Buffer(double Distance)来实现,函数的返回值为IGeometry(表5-12)。其中,输入的参数为正时向外缓冲,为负时向内缓冲。
缓冲分析实现的基本思路为:
1、设置缓冲距离
2、调用ITopologicalOperator.Buffer()方法生成缓冲区
3、向axMapControl中添加缓冲区。
// // 摘要: // Constructs a polygon that is the locus of points at a distance less than or equal // to a specified distance from this geometry. //