package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
MakeRandomGeomBounds creates a RandomGeomBounds struct with bounds corresponding to a geometry.
MakeRandomGeomBoundsForGeography creates a RandomGeomBounds struct with bounds corresponding to a geography.
RandomCoord generates a random coord in the given bounds.
RandomCoordSlice generates a slice of random coords of length corresponding to the given layout.
RandomGeography generates a random Geometry with the given SRID.
RandomGeographyWithLayout generates a random Geometry of a given layout with the given SRID.
RandomGeometry generates a random Geometry with the given SRID.
RandomGeometryCollection generates a random GeometryCollection.
RandomGeometryWithLayout generates a random Geometry of a given layout with the given SRID.
RandomGeomT generates a random geom.T object with the given layout within the given bounds and SRID.
RandomLayout randomly chooses a layout if no layout is provided.
RandomLineString generates a random LineString.
RandomMultiLineString generates a random MultiLineString.
RandomMultiPoint generates a random MultiPoint.
RandomMultiPolygon generates a random MultiPolygon.
RandomPoint generates a random Point.
RandomPolygon generates a random Polygon.
RandomShapeType returns a random geometry type.
RandomValidLinearRingCoords generates a flat float64 array of coordinates that represents a completely closed shape that can represent a simple LinearRing.
# Structs
RandomGeomBounds is a struct for storing the random bounds for each dimension.