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{ rstate := RenderStateType{
InitialRun: true, InitialRun: true,
LastX: coords.MinCoord, LastX: coords.MinCoord-1,
LastY: coords.MinCoord, LastY: coords.MinCoord-1,
LastZ: coords.MinCoord, LastZ: coords.MinCoord-1,
LastMtime: 0, LastMtime: 1,
} }
layers := []layer.Layer{ layers := []layer.Layer{

View File

@ -73,7 +73,7 @@ const getLegacyBlockQuery = `
select pos,data,mtime select pos,data,mtime
from blocks b from blocks b
where b.mtime == 0 where b.mtime == 0
and b.pos >= ? and b.pos > ?
order by b.pos asc order by b.pos asc
limit ? limit ?
` `

View File

@ -22,9 +22,7 @@ func Job(ctx *app.App) {
panic(err) panic(err)
} }
lastcoords = *newlastcoords if len(mblist) == 0 {
if len(mblist) <= 1 {
logrus.Info("Initial rendering complete") logrus.Info("Initial rendering complete")
rstate.InitialRun = false rstate.InitialRun = false
ctx.Config.Save() ctx.Config.Save()
@ -32,6 +30,8 @@ func Job(ctx *app.App) {
break break
} }
lastcoords = *newlastcoords
//for _, mb := range mblist { //for _, mb := range mblist {
//} //}