Skip to content

Commit

Permalink
MapDatabase: use TileClipper buffer as half the tile size, #231
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Nov 7, 2016
1 parent 439f2b2 commit a709bd2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions vtm/src/org/oscim/tiling/source/mapfile/MapDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,14 @@ private void setTileClipping(QueryParameters queryParameters, long mCurrentRow,
long numCols = queryParameters.toBlockX - queryParameters.fromBlockX;

//log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow);
xmin = -16;
ymin = -16;
xmax = Tile.SIZE + 16;
ymax = Tile.SIZE + 16;

// Buffer is half the tile size
int buffer = Tile.SIZE / 2;

xmin = -buffer;
ymin = -buffer;
xmax = Tile.SIZE + buffer;
ymax = Tile.SIZE + buffer;

if (numRows > 0) {
int w = (int) (Tile.SIZE / (numCols + 1));
Expand Down

0 comments on commit a709bd2

Please sign in to comment.