Implement more accurate buffer calculations for subsampled gdal tiles.
Add comments to last code change.