G.Random
type geometry =
| Point |
| MultiPoint of int |
| LineString of int |
| MultiLineString of int * int |
| Polygon of int |
| MultiPolygon of int * int |
| Collection of geometry list |
The random module provides a way of quickly constructing random, correct GeoJson. You provide the skeleton of the document using type t
and tweaking some of the parameters. For example:
{
let random_structure =
FC (List.init 100 (fun _ -> { properties = None; geometry = Point }))
}