Package org.geowebcache.diskquota.storage.PagePyramid

Examples of org.geowebcache.diskquota.storage.PagePyramid.PageLevelInfo


        long totalPages = 0;
        BigInteger totalTiles = BigInteger.ZERO;
        for (int z = zoomStart; z <= zoomStop; z++) {

            PageLevelInfo pageInfo = pp.getPageInfo(z);

            long levelPages = pageInfo.pagesX * pageInfo.pagesY;
            BigInteger tilesPerPage = pageInfo.tilesPerPage;

            totalPages += levelPages;
            totalTiles = totalTiles.add(tilesPerPage.multiply(BigInteger.valueOf(levelPages)));

            System.out.println(FilePathGenerator.zeroPadder(z, 2) + ": (total pages ="
                    + nf.format(totalPages) + ") " + pageInfo.toString() + "(level tiles = "
                    + nf.format(tilesPerPage.multiply(BigInteger.valueOf(levelPages))) + ") ");
        }
        System.out.println("Total pages: " + totalPages);
    }
View Full Code Here


        return pagePyramid;
    }

    public BigInteger getTilesPerPage(TileSet tileSet, int zoomLevel) {
        PagePyramid pagePyramid = getPagePyramid(tileSet);
        PageLevelInfo pageInfo = pagePyramid.getPageInfo(zoomLevel);
        BigInteger tilesPerPage = pageInfo.tilesPerPage;
        return tilesPerPage;
    }
View Full Code Here

        return pagePyramid;
    }

    public BigInteger getTilesPerPage(TileSet tileSet, int zoomLevel) {
        PagePyramid pagePyramid = getPagePyramid(tileSet);
        PageLevelInfo pageInfo = pagePyramid.getPageInfo(zoomLevel);
        BigInteger tilesPerPage = pageInfo.tilesPerPage;
        return tilesPerPage;
    }
View Full Code Here

        long totalPages = 0;
        BigInteger totalTiles = BigInteger.ZERO;
        for (int z = zoomStart; z <= zoomStop; z++) {

            PageLevelInfo pageInfo = pp.getPageInfo(z);

            long levelPages = pageInfo.pagesX * pageInfo.pagesY;
            BigInteger tilesPerPage = pageInfo.tilesPerPage;

            totalPages += levelPages;
            totalTiles = totalTiles.add(tilesPerPage.multiply(BigInteger.valueOf(levelPages)));

            System.out.println(FilePathUtils.zeroPadder(z, 2) + ": (total pages ="
                    + nf.format(totalPages) + ") " + pageInfo.toString() + "(level tiles = "
                    + nf.format(tilesPerPage.multiply(BigInteger.valueOf(levelPages))) + ") ");
        }
        System.out.println("Total pages: " + totalPages);
    }
View Full Code Here

TOP

Related Classes of org.geowebcache.diskquota.storage.PagePyramid.PageLevelInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.