package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
Area returns the area of a given Geography.
Azimuth returns the azimuth in radians of the segment defined by the given point geometries.
BestGeomProjection translates roughly to the ST_BestSRID function in PostGIS.
BoundingBoxHasNaNCoordinates checks if the bounding box of a Geography has a NaN coordinate.
Centroid returns the Centroid of a given Geography.
CoveredBy returns whether geography A is covered by geography B.
Covers returns whether geography A covers geography B.
Distance returns the distance between geographies a and b on a sphere or spheroid.
DWithin returns whether a is within distance d of b.
Intersects returns whether geography A intersects geography B.
Length returns length of a given Geography.
Perimeter returns the perimeter of a given Geography.
Project returns calculate a projected point given a source point, a distance and a azimuth.
Segmentize return modified Geography having no segment longer that given maximum segment length.
# Constants
SpheroidErrorFraction is an error fraction to compensate for using a sphere to calculate the distance for what is actually a spheroid.
UseSphere indicates to use the sphere for calculations.
UseSpheroid indicates to use the spheroid for calculations.
# Type aliases
UseSphereOrSpheroid indicates whether to use a Sphere or Spheroid for certain calculations.