Documentation ¶
Index ¶
Constants ¶
View Source
const ( GeometryPointType = "Point" GeometryMultiPointType = "MultiPoint" GeometryLineStringType = "LineString" GeometryMultiLineStringType = "MultiLineString" GeometryPolygonType = "Polygon" GeometryMultiPolygonType = "MultiPolygon" GeometryCollectionType = "GeometryCollectionType" )
View Source
const FeatureCollectionType = "FeatureCollection"
View Source
const FeatureType = "Feature"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct { ID interface{} `json:"id,omitempty"` Type string `json:"type"` Geometry geometry.Geometry `json:"geometry"` Properties Properties `json:"properties"` }
A Feature corresponds to GeoJSON feature object
func NewFeature ¶
type FeatureCollection ¶
func NewFeatureCollection ¶
func NewFeatureCollection() *FeatureCollection
func (*FeatureCollection) Append ¶
func (fc *FeatureCollection) Append(feature *Feature) *FeatureCollection
Append appends a feature to the collection.
type Geometry ¶
type Geometry struct { Type string `json:"type"` Coordinates geometry.Geometry `json:"coordinates,omitempty"` Geometries []*Geometry `json:"geometries,omitempty"` }
func NewGeometry ¶
type Properties ¶
type Properties map[string]interface{}
Click to show internal directories.
Click to hide internal directories.