/// <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();
 }
示例#2
0
        /// <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());
        }
示例#3
0
 public static Geometry BufferVariableWidth(LineString line, double startWidth, double endWidth)
 {
     return(VariableWidthBuffer.Buffer(line, startWidth, endWidth));
 }