1
0
forked from MTSR/mapserver
mapserver/server/tilerendererjob/worker.go
2019-01-24 20:55:20 +01:00

16 lines
246 B
Go

package tilerendererjob
import (
"mapserver/app"
"mapserver/coords"
)
func worker(ctx *app.App, coords <-chan *coords.TileCoords) {
for tc := range coords {
_, err := ctx.Tilerenderer.Render(tc, 5)
if err != nil {
panic(err)
}
}
}