From 8e49703a27539645502eeaf0a1d73b8ed324c584 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 17 Jan 2019 16:28:56 +0100 Subject: [PATCH] disable tiledb --- tiledb/sqlite.go | 5 +++-- tilerenderer/renderer.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tiledb/sqlite.go b/tiledb/sqlite.go index 9d6be10..d0c2bcf 100644 --- a/tiledb/sqlite.go +++ b/tiledb/sqlite.go @@ -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 = ` diff --git a/tilerenderer/renderer.go b/tilerenderer/renderer.go index 5fc2eb1..6c83e59 100644 --- a/tilerenderer/renderer.go +++ b/tilerenderer/renderer.go @@ -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 }