geov2

package
v2.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcCellsScore

func CalcCellsScore(cells []uint64) uint64

CalcCellsScore returns the total area of the given S2 cells in level 16 cell units (maxCellLevel in the geo repo's region coverer configuration - see geo/geojson/geojson_v2.go)

func NewQueryEvaluator

func NewQueryEvaluator(query Query, geoData segment.GeoShapeV2Data) *queryEvaluator

Types

type Query

type Query interface {
	Evaluate(geoData segment.GeoShapeV2Data) *util.Bitset
	InnerCells() []uint64
	CrossCells() []uint64
}

func NewContainsQuery

func NewContainsQuery(shape index.GeoJSON) Query

func NewDisjointQuery

func NewDisjointQuery(shape index.GeoJSON) Query

func NewIntersectsQuery

func NewIntersectsQuery(shape index.GeoJSON) Query

func NewQuery

func NewQuery(shape index.GeoJSON, relation string) Query

func NewWithinQuery

func NewWithinQuery(shape index.GeoJSON) Query

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL