Module Geometry.LineString

type t

A line string is two or more points

val coordinates : t -> Position.t array

Convert the line into a positionn array

val v : Position.t array -> t

Create a line string from positions, will raise Invalid_argument if the array doesn't have at least two positions.

val of_json : json -> (t[ `Msg of string ]) Stdlib.result
val to_json : t -> json