直接用缓冲区分析就可以达到你想要的效果;
BufferAnalystGeometry..::.CreateBuffer 方法 (Geometry, BufferAnalystParameter)
|
public void BufferAnalystForGeometry(GeoLine geolineForBuffer)
{
//设置缓冲区分析参数
BufferAnalystParameter bufferAnalystParam = new BufferAnalystParameter();
bufferAnalystParam.EndType = BufferEndType.Flat;
bufferAnalystParam.LeftDistance = 5;
bufferAnalystParam.RightDistance = 5;
//为线几何对象建立缓冲区,并将分析结果存储在结果数据集中
GeoRegion geometryBuffer = BufferAnalystGeometry.CreateBuffer(geolineForBuffer, bufferAnalystParam);
}
自己参照帮助文档查看一下BufferAnalystParameter各个参数的含义