wasm-spatial-core
    Preparing search index...

    Function bufferLineString

    • Generate a buffer polygon around a line string (union of point buffers).

      Returns a flat Float64Array of polygon vertices [lng0, lat0, ...]. Note: this is a simplified implementation that produces a convex hull of all circle vertices around each line point. For production use with concave results, consider geo's BooleanOps union.

      Parameters

      • coords: Float64Array
      • radius_meters: number
      • Optionalsegments: number | null

      Returns Float64Array