Documentation ¶
Overview ¶
Package tilecover computes the covering set of tiles for an orb.Geometry.
Index ¶
- func Bound(b orb.Bound, z maptile.Zoom) maptile.Set
- func Collection(c orb.Collection, z maptile.Zoom) maptile.Set
- func Geometry(g orb.Geometry, z maptile.Zoom) maptile.Set
- func LineString(ls orb.LineString, z maptile.Zoom) maptile.Set
- func MergeUp(set maptile.Set, min maptile.Zoom) maptile.Set
- func MergeUpPartial(set maptile.Set, min maptile.Zoom, count int) maptile.Set
- func MultiLineString(mls orb.MultiLineString, z maptile.Zoom) maptile.Set
- func MultiPoint(mp orb.MultiPoint, z maptile.Zoom) maptile.Set
- func MultiPolygon(mp orb.MultiPolygon, z maptile.Zoom) maptile.Set
- func Point(ll orb.Point, z maptile.Zoom) maptile.Set
- func Polygon(p orb.Polygon, z maptile.Zoom) maptile.Set
- func Ring(r orb.Ring, z maptile.Zoom) maptile.Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
Collection returns the covering set of tiles for the geoemtry collection.
func LineString ¶
LineString creates a tile cover for the line string.
func MergeUp ¶
MergeUp will merge up the tiles in a given set up to the the give min zoom. Tiles will be merged up only if all 4 siblings are in the set. The tiles in the input set are expected to all be of the same zoom, e.g. outputs of the Geometry function.
func MergeUpPartial ¶
MergeUpPartial will merge up the tiles in a given set up to the the give min zoom. Tiles will be merged up if `count` siblings are in the set. The tiles in the input set are expected to all be of the same zoom, e.g. outputs of the Geometry function.
func MultiLineString ¶
MultiLineString creates a tile cover for the line strings.
func MultiPoint ¶
MultiPoint creates a tile cover for the set of points,
func MultiPolygon ¶
MultiPolygon creates a tile cover for the multi-polygon.
Types ¶
This section is empty.