package geojsone

  1. Overview
  2. Docs

Module Geometry.PolygonSource

Sourcetype t

A close loop with optional rings

Sourceval rings : t -> LineString.t array

rings t returns the linear rings contained in t (a Polygon object)

Sourceval exterior_ring : t -> LineString.t

exterior_ring t returns the first linear ring contained in t (a Polygon object). This ring bounds the surface

Sourceval interior_rings : t -> LineString.t array

If t (a Polygon object) contains more than 1 linear ring, interior_rings t returns the rest of the linear rings apart from the first. These rings (if present), bound the holes.

Sourceval 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.)

Sourceval to_positions : t -> Position.t array array

Convert directly to the positions that make up the lines.

Sourceval of_positions : Position.t array array -> t

Convert directly from positions to lines

OCaml

Innovation. Community. Security.