Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinate ¶
type Coordinate struct {
Lat, Lon float64
}
type CsvSource ¶
type CsvSource struct {
// contains filtered or unexported fields
}
func NewCsvSource ¶
type Feature ¶
func MakeFeature ¶
func NewFeature ¶
func (*Feature) Center ¶
func (f *Feature) Center() (avg Coordinate)
type FeatureSource ¶
type GeojsonSource ¶
type GeojsonSource struct {
// contains filtered or unexported fields
}
func NewGeojsonSource ¶
func NewGeojsonSource(path string, filter []string) *GeojsonSource
func (*GeojsonSource) Publish ¶
func (gj *GeojsonSource) Publish() (features chan *Feature, err error)
type Shape ¶
type Shape struct {
Coordinates []Coordinate
}
func NewShape ¶
func NewShape(coords ...Coordinate) *Shape
func (*Shape) AddCoordinate ¶
func (s *Shape) AddCoordinate(c Coordinate)
func (*Shape) Append ¶
func (s *Shape) Append(c Coordinate)
func (*Shape) IsClockwise ¶
Directories ¶
Path | Synopsis |
---|---|
vector_tile
Package vector_tile provides the go code needed to read and write Mapbox vector tiles (https://github.com/mapbox/vector-tile-spec).
|
Package vector_tile provides the go code needed to read and write Mapbox vector tiles (https://github.com/mapbox/vector-tile-spec). |
package tile_system is a collection of conversion utilities to go between geo/pixel/tile/quadkey space This package uses WGS84 coordinates and a mercator projection
|
package tile_system is a collection of conversion utilities to go between geo/pixel/tile/quadkey space This package uses WGS84 coordinates and a mercator projection |
Click to show internal directories.
Click to hide internal directories.