geo

package
v0.0.0-...-896db50 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	X    float64
	Y    float64
	Z    float64
	EPSG int
}

Point stores coordinates of a location

func NewPoint

func NewPoint(epsg int, xyz ...float64) (point *Point, err error)

NewPoint returns a Point from ESPG and X/Y/Z coordinates

func NewPointByGeonameID

func NewPointByGeonameID(geonameID int) (*Point, error)

NewPointByGeonameID returns a Point from a geoname id

func (*Point) ToEWKT

func (p *Point) ToEWKT() string

ToWKT is a conveniance function which returns the WKT string of a Point

func (*Point) ToEWKT_2d

func (p *Point) ToEWKT_2d() string

ToWKT_2d is a conveniance function which returns the WKT 2D string of a Point

Jump to

Keyboard shortcuts

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