forked from MTSR/mapserver
render optimization
This commit is contained in:
parent
7dc38a1091
commit
3ac14934dd
@ -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)))
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user