1
0
forked from MTSR/mapserver

disable tiledb

This commit is contained in:
NatureFreshMilk 2019-01-17 16:28:56 +01:00
parent 25ce5ed65a
commit 8e49703a27
2 changed files with 4 additions and 3 deletions

View File

@ -86,8 +86,9 @@ values(?, ?, ?, ?, ?, ?)
`
func (db *Sqlite3Accessor) SetTile(tile *Tile) error {
_, err := db.db.Exec(setTileQuery, tile.Pos.X, tile.Pos.Y, tile.Pos.Zoom, tile.Pos.LayerId, tile.Data, tile.Mtime)
return err
//_, err := db.db.Exec(setTileQuery, tile.Pos.X, tile.Pos.Y, tile.Pos.Zoom, tile.Pos.LayerId, tile.Data, tile.Mtime)
//return err
return nil
}
const removeTileQuery = `

View File

@ -166,7 +166,7 @@ func (tr *TileRenderer) RenderImage(tc coords.TileCoords) (*image.NRGBA, error)
isEmpty := upperLeft == nil && upperRight == nil && lowerLeft == nil && lowerRight == nil
if isEmpty && (tc.Zoom == 12 || tc.Zoom == 11) {
if isEmpty && tc.Zoom == 11 {
//don't cache empty zoomed tiles
return nil, nil
}