basic

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyToPoints

func ApplyToPoints(geometry tegola.Geometry, f func(coords ...float64) ([]float64, error)) (tegola.Geometry, error)

func CloneGeometry

func CloneGeometry(geometry tegola.Geometry) (tegola.Geometry, error)

func ToWebMercator

func ToWebMercator(SRID int, geometry tegola.Geometry) (tegola.Geometry, error)

Types

type Collection

type Collection []interface {
	// contains filtered or unexported methods
}

Collection type can represent one or more other basic types.

func (*Collection) Geometeries

func (c *Collection) Geometeries() (geometeries []tegola.Geometry)

Geometeries return a set of geometeies that make that collection.

func (Collection) String

func (Collection) String() string

type Line

type Line []Point

Line is a basic line type which is made up of two or more points that don't interect. TODO: We don't really check to make sure the points don't intersect.

func NewLine

func NewLine(pointPairs ...float64) *Line

NewLine creates a line given pairs for floats.

func (Line) String

func (Line) String() string

func (*Line) Subpoints

func (l *Line) Subpoints() (points []tegola.Point)

Subpoints return the points in a line.

type MultiLine

type MultiLine []Line

MultiLine is a set of lines.

func (*MultiLine) Lines

func (ml *MultiLine) Lines() (lines []tegola.LineString)

Lines are the lines in a Multiline

func (MultiLine) String

func (MultiLine) String() string

type MultiPoint

type MultiPoint []Point

MultiPoint describes a simple set of 2d points

func (*MultiPoint) Points

func (v *MultiPoint) Points() (points []tegola.Point)

Points are the points that make up the set

func (*MultiPoint) String

func (*MultiPoint) String() string

type MultiPoint3

type MultiPoint3 []Point3

MultiPoint3 describes a simple set of 3d points

func (*MultiPoint3) Points

func (v *MultiPoint3) Points() (points []tegola.Point)

Points are the points that make up the set

func (*MultiPoint3) String

func (*MultiPoint3) String() string

type MultiPolygon

type MultiPolygon []Polygon

MultiPolygon describes a set of polygons.

func (*MultiPolygon) Polygons

func (mp *MultiPolygon) Polygons() (polygons []tegola.Polygon)

Polygons retuns the polygons that make up the set.

func (MultiPolygon) String

func (MultiPolygon) String() string

type Point

type Point [2]float64

Point describes a simple 2d point

func (*Point) String

func (*Point) String() string

func (*Point) X

func (bp *Point) X() float64

X is the x coordinate

func (*Point) Y

func (bp *Point) Y() float64

Y is the y coordinate

type Point3

type Point3 [3]float64

Point3 describes a simple 3d point

func (*Point3) String

func (*Point3) String() string

func (*Point3) X

func (bp *Point3) X() float64

X is the x coordinate

func (*Point3) Y

func (bp *Point3) Y() float64

Y is the y coordinate

func (*Point3) Z

func (bp *Point3) Z() float64

Z is the z coordinate

type Polygon

type Polygon []Line

Polygon describes a basic polygon; made up of multiple lines.

func (Polygon) String

func (Polygon) String() string

func (*Polygon) Sublines

func (p *Polygon) Sublines() (slines []tegola.LineString)

Sublines returns the lines that make up the polygon.

Jump to

Keyboard shortcuts

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