1
0
forked from MTSR/mapserver
mapserver/server/tilerendererjob/worker.go

20 lines
309 B
Go
Raw Normal View History

2019-01-24 17:56:37 +03:00
package tilerendererjob
import (
"mapserver/app"
"mapserver/coords"
)
func worker(ctx *app.App, coords <-chan *coords.TileCoords) {
for tc := range coords {
2019-01-27 20:34:04 +03:00
//remove tile
ctx.Objectdb.RemoveTile(tc)
//render tile
2019-01-24 22:55:20 +03:00
_, err := ctx.Tilerenderer.Render(tc, 5)
2019-01-24 17:56:37 +03:00
if err != nil {
panic(err)
}
}
}