Documentation
Overview ¶
Package fuzz provides primitives to generate random geom geometry types.
Index ¶
- func GenGeometry() geom.Geometry
- func GenRandCollection(withNil bool) *geom.Collection
- func GenRandLineString(withNil bool) *geom.LineString
- func GenRandMultiLineString(withNil bool) *geom.MultiLineString
- func GenRandMultiPoint() *geom.MultiPoint
- func GenRandMultiPolygon(withNil bool) *geom.MultiPolygon
- func GenRandPoint() *geom.Point
- func GenRandPolygon(withNil bool) *geom.Polygon
Constants ¶
Variables ¶
Functions ¶
func GenGeometry ¶
GenGenometry will generate a random Geometry. The geometry may be nil.
func GenRandCollection ¶
func GenRandCollection(withNil bool) *geom.Collection
GenRandCollection will generate a random Collection (that may be nil depending on withNil).
func GenRandLineString ¶
func GenRandLineString(withNil bool) *geom.LineString
GenRandLineString will generate a random LineString (that may be nil depending on withNil), and a randome number of points. There is no guarantee that the line string is simple.
func GenRandMultiLineString ¶
func GenRandMultiLineString(withNil bool) *geom.MultiLineString
GenRandMultiLineString will generate a random MultiLineString (that may be nil depending on withNil), and a random number of linestrings. There is no guarantee that the line strings are simple.
func GenRandMultiPoint ¶
func GenRandMultiPoint() *geom.MultiPoint
GenRandMultiPoint will generate a MultiPoint that may be nil, and will have a random number of points. There is no guarantee that all points are unique.
func GenRandMultiPolygon ¶
func GenRandMultiPolygon(withNil bool) *geom.MultiPolygon
GenRandMultiPolygon will generate a random MultiPolygon (that may be nil depending on withNil). The Polygons may not be valid or simple.
func GenRandPoint ¶
GenRandPoint will generate a random point. It is possible that the point may be nil.
func GenRandPolygon ¶
GenRandPolygon will generate a random Polygon (that may be nil depending on withNil). The Polygon may not be valid or simple.