Versions in this module Expand all Collapse all v0 v0.1.0 Feb 13, 2017 Changes in this version + const CircleType + const ContainsMethodEquirectangular + const ContainsMethodHaversine + const ContainsMethodSphericalCosines + const FeatureCollectionType + const FeatureType + const GeometryCollectionType + const LineType + const MultiLineType + const MultiPointType + const MultiPolygonType + const PointType + const PolygonType + var CircleContainsMethod = ContainsMethodEquirectangular + type Circle struct + Coordinates Point + Radius float64 + func (c *Circle) Scan(src interface{}) error + func (c *Circle) UnmarshalJSON(data []byte) error + func (c Circle) Contains(p Point) bool + func (c Circle) ContainsEquirectangular(p Point) bool + func (c Circle) ContainsHaversine(p Point) bool + func (c Circle) ContainsSLC(p Point) bool + func (c Circle) Equal(g Geometry) bool + func (c Circle) MarshalJSON() ([]byte, error) + func (c Circle) String() string + func (c Circle) Value() (driver.Value, error) + type Feature struct + Geometry Geometry + Properties interface{} + func (f *Feature) Scan(src interface{}) error + func (f *Feature) UnmarshalJSON(data []byte) error + func (f Feature) Contains(p Point) bool + func (f Feature) Equal(g Geometry) bool + func (f Feature) MarshalJSON() ([]byte, error) + func (f Feature) String() string + func (f Feature) Value() (driver.Value, error) + type FeatureCollection []Feature + func (coll *FeatureCollection) Scan(src interface{}) error + func (coll *FeatureCollection) UnmarshalJSON(data []byte) error + func (coll FeatureCollection) Contains(p Point) bool + func (coll FeatureCollection) Equal(g Geometry) bool + func (coll FeatureCollection) MarshalJSON() ([]byte, error) + func (coll FeatureCollection) String() string + func (coll FeatureCollection) Value() (driver.Value, error) + type Geometry interface + Contains func(p Point) bool + Equal func(g Geometry) bool + String func() string + func ScanGeometry(s string) (Geometry, error) + func UnmarshalJSON(data []byte) (Geometry, error) + func WithBBox(bbox []float64, geom Geometry) Geometry + type GeometryCollection []Geometry + func (gc *GeometryCollection) Scan(src interface{}) error + func (gc *GeometryCollection) UnmarshalJSON(data []byte) error + func (gc GeometryCollection) Contains(p Point) bool + func (gc GeometryCollection) Equal(g Geometry) bool + func (gc GeometryCollection) MarshalJSON() ([]byte, error) + func (gc GeometryCollection) String() string + func (gc GeometryCollection) Value() (driver.Value, error) + type Line [][3]float64 + func (line *Line) Scan(src interface{}) error + func (line *Line) UnmarshalJSON(data []byte) error + func (line Line) Contains(p Point) bool + func (line Line) Equal(g Geometry) bool + func (line Line) MarshalJSON() ([]byte, error) + func (line Line) String() string + func (line Line) Value() (driver.Value, error) + type MultiLine [][][3]float64 + func (ml *MultiLine) Scan(src interface{}) error + func (ml *MultiLine) UnmarshalJSON(data []byte) error + func (ml MultiLine) Contains(point Point) bool + func (ml MultiLine) Equal(g Geometry) bool + func (ml MultiLine) MarshalJSON() ([]byte, error) + func (ml MultiLine) String() string + func (ml MultiLine) Value() (driver.Value, error) + type MultiPoint [][3]float64 + func (mp *MultiPoint) Scan(src interface{}) error + func (mp *MultiPoint) UnmarshalJSON(data []byte) error + func (mp MultiPoint) Contains(p Point) bool + func (mp MultiPoint) Equal(g Geometry) bool + func (mp MultiPoint) MarshalJSON() ([]byte, error) + func (mp MultiPoint) String() string + func (mp MultiPoint) Value() (driver.Value, error) + type MultiPolygon [][][][3]float64 + func (multiPolygon *MultiPolygon) Scan(src interface{}) error + func (multiPolygon *MultiPolygon) UnmarshalJSON(data []byte) error + func (multiPolygon MultiPolygon) Contains(point Point) bool + func (multiPolygon MultiPolygon) Equal(g Geometry) bool + func (multiPolygon MultiPolygon) MarshalJSON() ([]byte, error) + func (multiPolygon MultiPolygon) String() string + func (multiPolygon MultiPolygon) Value() (driver.Value, error) + type Point [3]float64 + func (point *Point) Scan(src interface{}) error + func (point *Point) UnmarshalJSON(data []byte) error + func (point Point) Contains(other Point) bool + func (point Point) DistanceFrom(other Point) float64 + func (point Point) Equal(g Geometry) bool + func (point Point) MarshalJSON() ([]byte, error) + func (point Point) RayhIntersects(a, b Point) bool + func (point Point) String() string + func (point Point) Value() (driver.Value, error) + type Polygon [][][3]float64 + func (polygon *Polygon) Scan(src interface{}) error + func (polygon *Polygon) UnmarshalJSON(data []byte) error + func (polygon Polygon) Contains(point Point) bool + func (polygon Polygon) Equal(g Geometry) bool + func (polygon Polygon) MarshalJSON() ([]byte, error) + func (polygon Polygon) String() string + func (polygon Polygon) Value() (driver.Value, error)