package geojsone

  1. Overview
  2. Docs

Features which contain a geometry

type t

A feature object is a geojson object with optional geometry and properties members.

val geometry : t -> Geometry.t option
val properties : t -> json option
val foreign_members : t -> (string * json) list

foreign_members t will extract name/value pair of a foreign member from t (a GeoJSON object)

val id : t -> [ `String of string | `Float of float ] option

id f extracts the identifier for the feature if it exists.

val v : ?id:[ `String of string | `Float of float ] -> ?properties:json -> ?foreign_members:(string * json) list -> Geometry.t -> t

v geo creates a new feature object, you may wish to provide a properties JSON object for the feature too.

module Collection : sig ... end