1
0
forked from MTSR/mapserver

working initial rendering order

This commit is contained in:
NatureFreshMilk 2019-01-21 11:18:27 +01:00
parent c9a405f88a
commit 794498e41b
3 changed files with 8 additions and 8 deletions

View File

@ -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{

View File

@ -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 ?
`

View File

@ -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 {
//}