gis

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

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EarthRadiusMeters = 1000 * 6371

Variables

This section is empty.

Functions

func CoordsValid

func CoordsValid(lng, lat float64) bool

func EarthAngle

func EarthAngle(dist float64) s1.Angle

EarthAngle converts a to distance on earth in meters to an angle

func ValidLat

func ValidLat(lat float64) bool

func ValidLng

func ValidLng(lng float64) bool

Types

type Area

type Area float64

Area denotes an area on Earth

func EarthArea

func EarthArea(a float64) Area

EarthArea converts an area on the unit sphere to an area on earth in sq. meters.

func (Area) Km2

func (a Area) Km2() float64

func (Area) String

func (a Area) String() string

String converts the area to human readable units

type Length

type Length float64

Length denotes a length on Earth

func EarthDistance

func EarthDistance(angle s1.Angle) Length

EarthDistance converts an angle to distance on earth in meters.

func (Length) String

func (l Length) String() string

String converts the length to human readable units

func (Length) Value

func (l Length) Value() float64

Jump to

Keyboard shortcuts

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