types

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2015 License: Apache-2.0, MIT 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

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

func (*Geometry) UnmarshalRQL

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

type Line

type Line []Point

func UnmarshalLineString

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

func (Line) Coords

func (l Line) Coords() interface{}

func (Line) MarshalRQL

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

func (*Line) UnmarshalRQL

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

type Lines

type Lines []Line

func UnmarshalPolygon

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

func (Lines) Coords

func (l Lines) Coords() interface{}

func (Lines) MarshalRQL

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

func (*Lines) UnmarshalRQL

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

func (p Point) Coords() interface{}

func (Point) MarshalRQL

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

func (*Point) UnmarshalRQL

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

Jump to

Keyboard shortcuts

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