Documentation

Overview

Package fuzz provides primitives to generate random geom geometry types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenGeometry

func GenGeometry() geom.Geometry

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

func GenRandPoint() *geom.Point

GenRandPoint will generate a random point. It is possible that the point may be nil.

func GenRandPolygon

func GenRandPolygon(withNil bool) *geom.Polygon

GenRandPolygon will generate a random Polygon (that may be nil depending on withNil). The Polygon may not be valid or simple.

Types

This section is empty.

Source Files