Module Geometry.Polygon

type t

A close loop with optional rings

val interior_ring : t -> LineString.t
val exterior_rings : t -> LineString.t array
val v : LineString.t array -> t

Create a polygon object from an array of close line strings (note no checking is down here to ensure the loops are indeed closed.)

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