klokantech/tileserver-php — pull request #35 by Fil (2014-06-20 22:34:48+00:00)
Title: autodetect bounds for MBTiles

using the Mercator transform to convert the row number into an angle. We use the top of northern row and bottom of southern row at the maximum zoom factor available.