Documentation ¶
Overview ¶
Package tegola describes the basic geometeries that can be used to convert to and from.
Index ¶
Constants ¶
const ( WebMercator = 3857 WGS84 = 4326 )
const (
ProviderPostGIS string = "postgis"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundingBox ¶
type BoundingBox struct {
Minx, Miny, Maxx, Maxy float64
}
BoundingBox defines the extent of a tile
type Collection ¶
Collection is a collections of different geometries.
type LineString ¶
LineString is a Geometry of a line.
type MultiLine ¶
type MultiLine interface { Geometry Lines() []LineString }
MultiLine is a Geometry with multiple individual lines.
type MultiPoint ¶
MultiPoint is a Geometry with multiple individual points.
type MultiPolygon ¶
MultiPolygon describes a Geometry multiple intersecting polygons. There should only one exterior polygon, and the rest of the polygons should be interior polygons. The interior polygons will exclude the area from the exterior polygon.
type Point3 ¶
Point3 is a point with three dimensions; at current is just converted and treated as a point.
type Polygon ¶
type Polygon interface { Geometry Sublines() []LineString }
Polygon is a multi-line Geometry where all the lines connect to form an enclose space.
type Tile ¶
Tile slippy map tilenames
http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
func (*Tile) BoundingBox ¶
func (t *Tile) BoundingBox() BoundingBox
BoundingBox returns the bound box coordinates for upper left (ulx, uly) and lower right (lrx, lry) in web mercator projection ported from: https://raw.githubusercontent.com/mapbox/postgis-vt-util/master/postgis-vt-util.sql
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
tegola
tegola server
|
tegola server |
!build
|
!build |
Package math contins generic math functions that we need for doing transforms.
|
Package math contins generic math functions that we need for doing transforms. |
webmercator
Package webmercator does the translation to and from WebMercator and WGS84 Gotten from: http://wiki.openstreetmap.org/wiki/Mercator#C.23
|
Package webmercator does the translation to and from WebMercator and WGS84 Gotten from: http://wiki.openstreetmap.org/wiki/Mercator#C.23 |
vector_tile
Package vectorTile is a generated protocol buffer package.
|
Package vectorTile is a generated protocol buffer package. |
provider
|
|
Package server implements the http frontend
|
Package server implements the http frontend |
util
|
|
dict
This file was generated using gen.pl and go fmt.
|
This file was generated using gen.pl and go fmt. |
Package wkb is for decoding ESRI's Well Known Binary (WKB) format for OGC geometry (WKBGeometry) sepcification at http://edndoc.esri.com/arcsde/9.1/general_topics/wkb_representation.htm There are a few types supported by the specification.
|
Package wkb is for decoding ESRI's Well Known Binary (WKB) format for OGC geometry (WKBGeometry) sepcification at http://edndoc.esri.com/arcsde/9.1/general_topics/wkb_representation.htm There are a few types supported by the specification. |