1
0
forked from MTSR/mapserver

render optimization

This commit is contained in:
NatureFreshMilk 2019-02-19 09:06:12 +01:00
parent 7dc38a1091
commit 3ac14934dd
2 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,7 @@ func (this *PostgresAccessor) FindNextInitialBlocks(s settings.Settings, layers
"pos2": tcr.Pos2,
"tile": tc,
}
log.WithFields(fields).Info("Initial-Query")
log.WithFields(fields).Debug("Initial-Query")
minX := int(math.Min(float64(tcr.Pos1.X), float64(tcr.Pos2.X)))
maxX := int(math.Max(float64(tcr.Pos1.X), float64(tcr.Pos2.X)))

View File

@ -91,7 +91,8 @@ func (tr *TileRenderer) renderImage(tc *coords.TileCoords, recursionDepth int) (
}
}
if recursionDepth == 0 {
if recursionDepth <= 1 && tc.Zoom < 13 {
//non-cached layer and not in "origin" zoom, skip tile
log.WithFields(logrus.Fields{"x": tc.X, "y": tc.Y, "zoom": tc.Zoom}).Debug("Skip image")
return nil, nil, nil
}