Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct { Type Type `json:"type"` Properties map[string]interface{} `json:"properties"` ID string `json:"id,omitempty"` Geometry interface{} `json:"geometry,omitempty"` }
Feature represents GeoJSON feature.
func NewFeature ¶
func NewFeature(geometry interface{}) *Feature
NewFeature returns GeoJSON Feature instance from the provided geometry.
type FeatureCollection ¶
type FeatureCollection struct { Type Type `json:"type"` Features []*Feature `json:"features,omitempty"` }
FeatureCollection represents a collection of GeoJSON features.
func NewFeatureCollection ¶
func NewFeatureCollection() *FeatureCollection
NewFeatureCollection returns GeoJSON FeatureCollection instance.
func (*FeatureCollection) Push ¶
func (fc *FeatureCollection) Push(f *Feature) *FeatureCollection
Push adds Feature to the collection.
type MultiPolygon ¶
MultiPolygon represents GeoJSON MultiPolygon.
func NewMultiPolygon ¶
func NewMultiPolygon() MultiPolygon
NewMultiPolygon returns GeoJSON NewMultiPolygon instance.
func (MultiPolygon) MarshalJSON ¶
func (m MultiPolygon) MarshalJSON() ([]byte, error)
type Point ¶
type Point [2]float64
Point represents GeoJSON Point.
func (Point) MarshalJSON ¶
type Polygon ¶
Polygon represents GeoJSON Polygon.
func NewPolygon ¶
NewPoint returns GeoJSON Polygon instance from the loop.
func (Polygon) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.