Documentation ¶
Index ¶
- Variables
- func CombineFileSubFiles(filenames []string)
- func GetSize(filename string) int
- func GetSizeGrid(bb m.Extrema, zoom int) int
- func Intersect(bdsref m.Extrema, bds m.Extrema) bool
- func LazyFeatureTileID(bs []byte) m.TileID
- func MapGeobuf(filename string, mapfunc TileMap, tileconfig *TileConfig)
- func Overlapping_1D(box1min float64, box1max float64, box2min float64, box2max float64) bool
- func PushTwoBoundingBoxs(bb1, bb2 m.Extrema) m.Extrema
- func SplitCombineFile(buf *g.Reader, myfunc func(feature *geojson.Feature) []string)
- func SplitCombineTiles(buf *g.Reader, zoom int) *g.Reader
- type LoggingInitialMap
- type Splitter
- type TileConfig
- type TileMap
Constants ¶
This section is empty.
Variables ¶
var EndZoom = 0
var StartZoom = 0
Functions ¶
func CombineFileSubFiles ¶
func CombineFileSubFiles(filenames []string)
this is a corner case that continues to come up if splitting a file and the sub file needs to be split again each subfile contains its own subfile that needs to be handled combine all the sub files into one big file then dump meta data into another
func GetSizeGrid ¶
getting size of the estimated square grid of tiles
func LazyFeatureTileID ¶
this function is intended to be a light weight read of feature bytes with minimal logic / alloc to read the single feature property we need, "TILEID"
func MapGeobuf ¶
func MapGeobuf(filename string, mapfunc TileMap, tileconfig *TileConfig)
a powerful function that maps an entire geobuf into a submapping that can be navigated through geobufs seek api one can effectively view this as a sort with about tiles
func Overlapping_1D ¶
structure for finding overlapping values
func PushTwoBoundingBoxs ¶
pushs two bounding box values
func SplitCombineFile ¶
wrapping all the methods up
Types ¶
type LoggingInitialMap ¶
type Splitter ¶
type Splitter struct { Bounds m.Extrema Reader *g.Reader NumberFeatures int SplitMap map[string]*g.Writer }
this structure allows for easy splitting of tiles
func NewSplitter ¶
func (*Splitter) AddFeature ¶
adds a single feature to the split map
func (*Splitter) Combine ¶
func (splitter *Splitter) Combine()
combines all hte intermediate files and removes them
func (*Splitter) MapToSubFiles ¶
maps a function that generates a key to an entire geobuf file