geo

package
v0.0.0-...-0ad4d90 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxParallelism

func MaxParallelism() int

func PointInBoundingBox

func PointInBoundingBox(pt Point, bb BoundingBox) bool

func PointInPolygon

func PointInPolygon(pt Point, poly Polygon) bool

Types

type BoundingBox

type BoundingBox struct {
	BottomLeft Point
	TopRight   Point
}

func GetBoundingBox

func GetBoundingBox(poly Polygon) BoundingBox

type Point

type Point struct {
	Y float64 // Lat
	X float64 // Lon
}

func PointInPolygonParallel

func PointInPolygonParallel(pts []Point, poly Polygon, numcores int) []Point

type Polygon

type Polygon struct {
	Points []Point
}

Jump to

Keyboard shortcuts

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