package geojson
Module S.FeatureSource
Features which contain a geometry
A feature object is a geojson object with optional geometry and properties members.
foreign_members t will extract name/value pair of a foreign member from t (a GeoJSON object)
id f extracts the identifier for the feature if it exists.
Source
val v :
?id:[ `String of string | `Float of float ] ->
?properties:json ->
?foreign_members:(string * json) list ->
Geometry.t ->
tv geo creates a new feature object, you may wish to provide a properties JSON object for the feature too.