1
0
forked from MTSR/mapserver
mapserver/tilerenderer/renderer.go

26 lines
566 B
Go
Raw Normal View History

2019-01-11 18:00:40 +03:00
package tilerenderer
import (
"mapserver/coords"
"mapserver/mapblockrenderer"
"mapserver/tiledb"
"image"
)
type TileRenderer struct {
mapblockrenderer *mapblockrenderer.MapBlockRenderer
tiledb *tiledb.DBAccessor
}
func NewTileRenderer(mapblockrenderer *mapblockrenderer.MapBlockRenderer, tiledb *tiledb.DBAccessor) *TileRenderer {
return &TileRenderer{
mapblockrenderer: mapblockrenderer,
tiledb: tiledb,
}
}
//TODO layerConfig
func (tr *TileRenderer) Render(tc coords.TileCoords, layerId int) (*image.NRGBA, error) {
return nil, nil
}