package topojson

  1. Overview
  2. Docs

Module S.TopologySource

Sourcetype t

A topology object

Sourcetype transform = {
  1. scale : float * float;
  2. translate : float * float;
}

A transform object

Sourceval objects : t -> (string * Geometry.t) list

The underlying objects of the topology object.

Sourceval arcs : t -> Geometry.Position.t array array

The database of linestrings used by other geometries.

Sourceval foreign_members : t -> (string * json) list

The extra fields that were in the topology object.

Sourceval transform : t -> transform option

Get the transform object of a Topology object.

Sourceval v : ?foreign_members:(string * json) list -> ?transform:transform -> arcs:Geometry.Position.t array array -> (string * Geometry.t) list -> t

Construct a new topology object getting the arcs and the geometry objects.

Sourceval to_json : ?bbox:float array -> t -> json
Sourceval of_json : json -> (t, [ `Msg of string ]) result
OCaml

Innovation. Community. Security.