types

package
Version: v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Geometry

type Geometry struct {
	Type  string
	Point Point
	Line  Line
	Lines Lines
}

func (Geometry) MarshalRQL added in v0.6.0

func (g Geometry) MarshalRQL() (interface{}, error)

func (*Geometry) UnmarshalRQL added in v0.6.0

func (g *Geometry) UnmarshalRQL(data interface{}) error

type Line

type Line []Point

func UnmarshalLineString

func UnmarshalLineString(v interface{}) (Line, error)

func (Line) Coords added in v0.6.0

func (l Line) Coords() interface{}

func (Line) MarshalRQL added in v0.6.0

func (l Line) MarshalRQL() (interface{}, error)

func (*Line) UnmarshalRQL added in v0.6.0

func (l *Line) UnmarshalRQL(data interface{}) error

type Lines

type Lines []Line

func UnmarshalPolygon

func UnmarshalPolygon(v interface{}) (Lines, error)

func (Lines) Coords added in v0.6.0

func (l Lines) Coords() interface{}

func (Lines) MarshalRQL added in v0.6.0

func (l Lines) MarshalRQL() (interface{}, error)

func (*Lines) UnmarshalRQL added in v0.6.0

func (l *Lines) UnmarshalRQL(data interface{}) error

type Point

type Point struct {
	Lon float64
	Lat float64
}

func UnmarshalPoint

func UnmarshalPoint(v interface{}) (Point, error)

func (Point) Coords added in v0.6.0

func (p Point) Coords() interface{}

func (Point) MarshalRQL added in v0.6.0

func (p Point) MarshalRQL() (interface{}, error)

func (*Point) UnmarshalRQL added in v0.6.0

func (p *Point) UnmarshalRQL(data interface{}) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL