public int GridHeight(int z) { double res = this._resolutions[z]; return (int)Math.Ceiling((this._envelope.Maxy - this._envelope.Miny) / res / this._tileHeight); }