Versions in this module Expand all Collapse all v0 v0.1.0 Dec 5, 2016 Changes in this version + const BBOX + const COORDINATES + const FEATURE + const FEATURECOLLECTION + const FEATURES + const GEOMETRIES + const GEOMETRY + const GEOMETRYCOLLECTION + const ID + const LINESTRING + const MULTILINESTRING + const MULTIPOINT + const MULTIPOLYGON + const POINT + const POLYGON + const PROPERTIES + const TYPE + func FromMap(input map[string]interface{}) interface + func Parse(bytes []byte) (interface{}, error) + func ParseFile(filename string) (interface{}, error) + func ToGeometryArray(gjObject interface{}) []interface + func WKT(input string) interface + func Write(input interface{}) ([]byte, error) + func WriteFile(input interface{}, filename string) error + type BoundingBox []float64 + func NewBoundingBox(input interface{}) (BoundingBox, error) + func (bb BoundingBox) Antimeridian() bool + func (bb BoundingBox) Centroid() *Point + func (bb BoundingBox) Equals(test BoundingBox) bool + func (bb BoundingBox) Overlaps(test BoundingBox) bool + func (bb BoundingBox) Polygon() *Polygon + func (bb BoundingBox) String() string + func (bb BoundingBox) Valid() error + type BoundingBoxIfc interface + ForceBbox func() BoundingBox + type Feature struct + Bbox BoundingBox + Geometry interface{} + ID interface{} + Properties map[string]interface{} + Type string + func FeatureFromBytes(bytes []byte) (*Feature, error) + func FeatureFromMap(input map[string]interface{}) *Feature + func NewFeature(geometry interface{}, id interface{}, properties map[string]interface{}) *Feature + func (feature *Feature) ForceBbox() BoundingBox + func (feature *Feature) IDStr() string + func (feature *Feature) Map() map[string]interface{} + func (feature *Feature) PropertyFloat(propertyName string) float64 + func (feature *Feature) PropertyInt(propertyName string) int + func (feature *Feature) PropertyString(propertyName string) string + func (feature *Feature) PropertyStringSlice(propertyName string) []string + func (feature *Feature) ResolveGeometry() + func (feature *Feature) String() string + type FeatureCollection struct + Bbox BoundingBox + Features []*Feature + Type string + func FeatureCollectionFromBytes(bytes []byte) (*FeatureCollection, error) + func FeatureCollectionFromMap(input map[string]interface{}) *FeatureCollection + func FromWFS(wfsURL, featureType string) (*FeatureCollection, error) + func NewFeatureCollection(features []*Feature) *FeatureCollection + func (fc *FeatureCollection) FillProperties() + func (fc *FeatureCollection) ForceBbox() BoundingBox + func (fc *FeatureCollection) Map() map[string]interface{} + func (fc *FeatureCollection) String() string + type GeometryCollection struct + Bbox BoundingBox + Geometries []interface{} + Type string + func GeometryCollectionFromBytes(bytes []byte) (*GeometryCollection, error) + func NewGeometryCollection(geometries []interface{}) *GeometryCollection + func (gc GeometryCollection) ForceBbox() BoundingBox + func (gc GeometryCollection) Map() map[string]interface{} + func (gc GeometryCollection) String() string + type LineString struct + Bbox BoundingBox + Coordinates [][]float64 + Type string + func LineStringFromBytes(bytes []byte) (*LineString, error) + func NewLineString(coordinates [][]float64) *LineString + func (ls LineString) ForceBbox() BoundingBox + func (ls LineString) Map() map[string]interface{} + func (ls LineString) String() string + type Mapper interface + Map func() map[string]interface{} + type MultiLineString struct + Bbox BoundingBox + Coordinates [][][]float64 + Type string + func MultiLineStringFromBytes(bytes []byte) (*MultiLineString, error) + func NewMultiLineString(coordinates [][][]float64) *MultiLineString + func (mls MultiLineString) ForceBbox() BoundingBox + func (mls MultiLineString) Map() map[string]interface{} + func (mls MultiLineString) String() string + type MultiPoint struct + Bbox BoundingBox + Coordinates [][]float64 + Type string + func MultiPointFromBytes(bytes []byte) (*MultiPoint, error) + func NewMultiPoint(coordinates [][]float64) *MultiPoint + func (mp MultiPoint) ForceBbox() BoundingBox + func (mp MultiPoint) Map() map[string]interface{} + func (mp MultiPoint) String() string + type MultiPolygon struct + Bbox BoundingBox + Coordinates [][][][]float64 + Type string + func MultiPolygonFromBytes(bytes []byte) (*MultiPolygon, error) + func NewMultiPolygon(coordinates [][][][]float64) *MultiPolygon + func (mp MultiPolygon) ForceBbox() BoundingBox + func (mp MultiPolygon) Map() map[string]interface{} + func (mp MultiPolygon) String() string + type Point struct + Bbox BoundingBox + Coordinates []float64 + Type string + func NewPoint(coordinates []float64) *Point + func PointFromBytes(bytes []byte) (*Point, error) + func (point Point) ForceBbox() BoundingBox + func (point Point) Map() map[string]interface{} + func (point Point) String() string + func (point Point) WKT() string + type Polygon struct + Bbox BoundingBox + Coordinates [][][]float64 + Type string + func NewPolygon(coordinates [][][]float64) *Polygon + func PolygonFromBytes(bytes []byte) (*Polygon, error) + func (polygon Polygon) ForceBbox() BoundingBox + func (polygon Polygon) Map() map[string]interface{} + func (polygon Polygon) String() string