package geojsone

  1. Overview
  2. Docs
Streaming GeoJSON library

Install

Dune Dependency

Authors

Maintainers

Sources

geojson-0.1.0.tbz
sha256=5f3f909bcc028004694842f7397d5bc1f19fce4684619a9ccd2ebd2252d18feb
sha512=e3a6ef42983f336cf929bcd651216513e5e5ac1936fae6b320ecc39cd8398310e9e8170a26a765feb13fa4730792fc5eee14c672f373eeec7509fed0a67db11a

doc/geojsone/Geojsone/G/index.html

Module Geojsone.GSource

The internal representation of a JSON value.

Sourcemodule Geometry : sig ... end

Geometries

Sourcemodule Feature : sig ... end

Features which contain a geometry

Sourcetype geojson =
  1. | Feature of Feature.t
  2. | FeatureCollection of Feature.Collection.t
  3. | Geometry of Geometry.t

A geojson object which could be a geometry, a feature or a collection of features.

Sourcetype t

The type for GeoJSON objects.

Sourceval geojson : t -> geojson

geojson t will extract geojson value from t (a GeoJSON object)

Sourceval bbox : t -> float array option

bbox t will extract bbox value from t (a GeoJSON object)

Sourceval v : ?bbox:float array -> geojson -> t

v geojson bbox combines geojson and bbox to return a GeoJSON object (a type t)

Sourceval of_json : json -> (t, [ `Msg of string ]) result

of_json json converts the JSON to a GeoJSON object (a type t) or an error.

Sourceval to_json : t -> json

to_json g converts the GeoJSON object g to JSON

Sourcemodule Accessor : sig ... end
Sourcemodule Random : sig ... end
OCaml

Innovation. Community. Security.