Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinate ¶
func C ¶
func C(x, y float64) Coordinate
func LngLat ¶
func LngLat(lng float64, lat float64) Coordinate
func (*Coordinate) ToSlice ¶
func (c *Coordinate) ToSlice() []float64
type GeoCollection ¶
type GeoCollection struct { Type string `bson:"type"` Gs []interface{} `bson:"geometries"` }
type LineString ¶
func NewLineString ¶
func NewLineString(start, end Coordinate) *LineString
func (*LineString) End ¶
func (l *LineString) End() Coordinate
func (*LineString) Start ¶
func (l *LineString) Start() Coordinate
type MultiLineString ¶
func NewMLineString ¶
func NewMLineString(lines []*LineString) *MultiLineString
func (*MultiLineString) LineStrings ¶
func (m *MultiLineString) LineStrings() []*LineString
type MultiPoint ¶
func NewMPoint ¶
func NewMPoint(c1 Coordinate, cs ...Coordinate) *MultiPoint
func (*MultiPoint) Coordinates ¶
func (m *MultiPoint) Coordinates() []Coordinate
type MultiPolygon ¶
func NewMPg ¶
func NewMPg(pg1 Polygon, pgs ...Polygon) *MultiPolygon
func (*MultiPolygon) Polygons ¶
func (m *MultiPolygon) Polygons() []*Polygon
type Point ¶
func NewPoint ¶
func NewPoint(c *Coordinate) *Point
func (*Point) Coordinate ¶
func (p *Point) Coordinate() Coordinate
type Polygon ¶
func NewPolygon ¶
type Ring ¶
type Ring struct {
C []Coordinate
}
Click to show internal directories.
Click to hide internal directories.