public String tileTable ( String table ) { StringBuilder output = new StringBuilder ( ) ; TileDao tileDao = geoPackage . getTileDao ( table ) ; output . append ( "Table Name: " + tileDao . getTableName ( ) ) ; long minZoom = tileDao . getMinZoom ( ) ; long maxZoom = tileDao . getMaxZoom ( ) ; output . append ( "\nMin Zoom: " + minZoom ) ; output . append ( "\nMax Zoom: " + maxZoom ) ; output . append ( "\nTiles: " + tileDao . count ( ) ) ; TileMatrixSet tileMatrixSet = tileDao . getTileMatrixSet ( ) ; output . append ( "\n\nContents\n\n" ) . append ( textOutput ( tileMatrixSet . getContents ( ) ) ) ; output . append ( "\n\nTile Matrix Set\n\n" ) . append ( textOutput ( tileMatrixSet ) ) ; output . append ( "\n\n Tile Matrices" ) ; for ( long zoom = minZoom ; zoom <= maxZoom ; zoom ++ ) { TileMatrix tileMatrix = tileDao . getTileMatrix ( zoom ) ; if ( tileMatrix != null ) { output . append ( "\n\n" ) . append ( textOutput ( tileMatrix ) ) ; output . append ( "\n\tTiles: " + tileDao . count ( zoom ) ) ; BoundingBox boundingBox = tileDao . getBoundingBox ( zoom ) ; output . append ( "\n\tTile Bounds: \n" ) . append ( textOutput ( boundingBox ) ) ; } } return output . toString ( ) ; }
Build text from a tile table