public static bool ZoomDirectoryExists(string quadKey, string databaseName, string tableName)
        {
            int tileX, tileY, zoom;

            BingMapsTileSystem.QuadKeyToTileXY(quadKey, out tileX, out tileY, out zoom);
            return(Directory.Exists(Path.Combine(RasterFileSystem.GetOutputDirFromAppSettings(), databaseName, tableName, tableName + "-" + zoom.ToString())));
        }
        public static string GetTileFilePath(string quadKey, string databaseName, string tableName)
        {
            int tileX, tileY, zoom;

            BingMapsTileSystem.QuadKeyToTileXY(quadKey, out tileX, out tileY, out zoom);
            return(Path.Combine(RasterFileSystem.GetOutputDirFromAppSettings(), databaseName, tableName, tableName + "-" + zoom.ToString(), tileX.ToString(), tileY.ToString() + ".png"));
        }