forked from MTSR/mapserver
working initial rendering order
This commit is contained in:
parent
c9a405f88a
commit
794498e41b
@ -72,10 +72,10 @@ func ParseConfig(filename string) (*Config, error) {
|
||||
|
||||
rstate := RenderStateType{
|
||||
InitialRun: true,
|
||||
LastX: coords.MinCoord,
|
||||
LastY: coords.MinCoord,
|
||||
LastZ: coords.MinCoord,
|
||||
LastMtime: 0,
|
||||
LastX: coords.MinCoord-1,
|
||||
LastY: coords.MinCoord-1,
|
||||
LastZ: coords.MinCoord-1,
|
||||
LastMtime: 1,
|
||||
}
|
||||
|
||||
layers := []layer.Layer{
|
||||
|
@ -73,7 +73,7 @@ const getLegacyBlockQuery = `
|
||||
select pos,data,mtime
|
||||
from blocks b
|
||||
where b.mtime == 0
|
||||
and b.pos >= ?
|
||||
and b.pos > ?
|
||||
order by b.pos asc
|
||||
limit ?
|
||||
`
|
||||
|
@ -22,9 +22,7 @@ func Job(ctx *app.App) {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
lastcoords = *newlastcoords
|
||||
|
||||
if len(mblist) <= 1 {
|
||||
if len(mblist) == 0 {
|
||||
logrus.Info("Initial rendering complete")
|
||||
rstate.InitialRun = false
|
||||
ctx.Config.Save()
|
||||
@ -32,6 +30,8 @@ func Job(ctx *app.App) {
|
||||
break
|
||||
}
|
||||
|
||||
lastcoords = *newlastcoords
|
||||
|
||||
//for _, mb := range mblist {
|
||||
//}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user