types

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2015 License: 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

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