Fix bug with boundaries.
Fixed bug in ingest script about rounding 8192(tilesz) down to 0.