/// <summary> /// </summary> /// <param name="line">the line to buffer</param> /// <param name="startWidth">the buffer width at the start of the line</param> /// <param name="endWidth">the buffer width at the end of the line</param> /// <returns>The variable-width buffer polygon</returns> public static IGeometry Buffer(ILineString line, double startWidth, double endWidth) { var width = Interpolate(line, startWidth, endWidth); var vb = new VariableWidthBuffer(line, width); return vb.GetResult(); }
/// <summary> /// </summary> /// <param name="line">the line to buffer</param> /// <param name="startWidth">the buffer width at the start of the line</param> /// <param name="endWidth">the buffer width at the end of the line</param> /// <returns>The variable-width buffer polygon</returns> public static IGeometry Buffer(ILineString line, double startWidth, double endWidth) { var width = Interpolate(line, startWidth, endWidth); var vb = new VariableWidthBuffer(line, width); return(vb.GetResult()); }
public static Geometry BufferVariableWidth(LineString line, double startWidth, double endWidth) { return(VariableWidthBuffer.Buffer(line, startWidth, endWidth)); }