biogeo

package
v0.0.0-...-616f46f Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinLon = -180
	MaxLon = 180
	MinLat = -90
	MaxLat = 90
)

Earth boundaries

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSet

type DataSet struct {
	Ls    []*Taxon          // list of taxons, as found
	Names map[string]*Taxon // a map of name (in lower caps) to taxon
}

A DataSet is a biogeography data set.

func Read

func Read(in io.Reader) (*DataSet, error)

Read reads data from an input stream in tsv format.

func (*DataSet) Taxon

func (d *DataSet) Taxon(name string) *Taxon

Taxon returns a taxon of a given name.

type GeoRef

type GeoRef struct {
	Catalog  string
	Lon, Lat float64
}

A GeoRef is a georeferenced record.

func (GeoRef) IsValid

func (g GeoRef) IsValid() bool

IsValid returns true if the GeoRef is a valid geographic point.

type Taxon

type Taxon struct {
	Name string
	Recs []GeoRef
}

A Taxon is a named terminal taxon with a list of georeferenced records.

Jump to

Keyboard shortcuts

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