Documentation ¶
Index ¶
Constants ¶
View Source
const ( TwoD = iota Z M ZM )
View Source
const ( X = iota Y )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bounds ¶
type Bounds struct {
Min, Max Point
}
func NewBoundsPoint ¶
func (Bounds) ExtendPoint ¶
func (Bounds) ExtendPoints ¶
func (Bounds) ExtendPointss ¶
type Feature ¶
type Feature struct { T Properties interface{} }
Create a Feature to serialize GeoJSON with additional arbitrary properties. Properties may be any JSON-serializable value. Encoding a Feature to another format, like WKT, will only encode the geometry, not the properties.
func NewFeature ¶
type FeatureCollection ¶
type FeatureCollection struct { Features []T Properties interface{} }
func (FeatureCollection) AppendFeature ¶
func (f FeatureCollection) AppendFeature(newFeature Feature) FeatureCollection
func (FeatureCollection) AppendGeometry ¶
func (f FeatureCollection) AppendGeometry(t T, properties interface{}) FeatureCollection
func (FeatureCollection) Bounds ¶
func (f FeatureCollection) Bounds(b Bounds) Bounds
type GeometryCollection ¶
type GeometryCollection []T
func (GeometryCollection) Bounds ¶
func (geometryCollection GeometryCollection) Bounds(b Bounds) Bounds
type LineString ¶
type LineString []Point
func (LineString) Bounds ¶
func (lineString LineString) Bounds(b Bounds) Bounds
type MultiLineString ¶
type MultiLineString []LineString
func (MultiLineString) Bounds ¶
func (multiLineString MultiLineString) Bounds(b Bounds) Bounds
type MultiPoint ¶
type MultiPoint []Point
func (MultiPoint) Bounds ¶
func (multiPoint MultiPoint) Bounds(b Bounds) Bounds
type MultiPolygon ¶
type MultiPolygon []Polygon
func (MultiPolygon) Bounds ¶
func (multiPolygon MultiPolygon) Bounds(b Bounds) Bounds
type Point ¶
type Point []float64
The first two components of Point are X and Y. You may use as many additional components as you like for Z, M, etc. They are ignored, but preserved for GeoJSON encoding.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.