1
0
forked from MTSR/mapserver

layer process in postgres

This commit is contained in:
NatureFreshMilk 2019-02-15 09:04:34 +01:00
parent 5f8234e2a9
commit ddda7dbe60

View File

@ -45,10 +45,20 @@ func (this *PostgresAccessor) FindNextInitialBlocks(s settings.Settings, layers
if lastyblock > 128 { if lastyblock > 128 {
//done //done
//TODO: next layer var nextlayer = lastlayer
for _, l := range layers {
if l.Id > nextlayer {
nextlayer = l.Id
break
}
}
s.SetInt(SETTING_LAST_LAYER, nextlayer)
s.SetInt(SETTING_LAST_X_BLOCK, -129)
s.SetInt(SETTING_LAST_Y_BLOCK, -128)
result := &db.InitialBlocksResult{} result := &db.InitialBlocksResult{}
result.HasMore = false result.HasMore = nextlayer != lastlayer
return result, nil return result, nil
} }