package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
DefaultGeographyIndexConfig returns a default config for a geography index.
DefaultGeometryIndexConfig returns a default config for a geometry index.
DefaultS2Config returns the default S2Config to initialize.
GeometryIndexConfigForSRID returns a geometry index config for srid.
NewS2GeographyIndex returns an index with the given configuration.
NewS2GeometryIndex returns an index with the given configuration.
# Constants
CoveredBy corresponds to the relationship in which one geospatial object is covered by another geospatial object.
Covers corresponds to the relationship in which one geospatial object covers another geospatial object.
DFullyWithin corresponds to a relationship where every pair of points in two geometries are within d distance units.
DWithin corresponds to a relationship where there exists a part of one geometry within d distance units of the other geometry.
Intersects corresponds to the relationship in which one geospatial object intersects another geospatial object.
RPSetIntersection is the intersection operator.
RPSetUnion is the union operator.
# Variables
CommuteRelationshipMap is used to determine how the geospatial relationship changes if the arguments to the index-accelerated function are commuted.
RelationshipMap contains all the geospatial functions that can be index- accelerated.
RelationshipReverseMap contains a default function for each of the possible geospatial relationships.
# Interfaces
GeographyIndex is an index over the unit sphere.
GeometryIndex is an index over 2D cartesian coordinates.
RPExprElement is an element in the Reverse Polish notation expression.
# Type aliases
Key is one entry under which a geospatial shape is stored on behalf of an Index.
RelationshipType stores a type of geospatial relationship query that can be accelerated using an index.
RPKeyExpr is an expression to evaluate over primary keys retrieved for index keys.
RPSetOperator is a set operator in the Reverse Polish notation expression.
UnionKeySpans is the set of indexed spans to retrieve and combine via set union.