Examples of nextMetaGridLocation()


Examples of org.geowebcache.storage.TileRangeIterator.nextMetaGridLocation()

    private void seedTiles(StorageBroker storageBroker, TileRange tr, final WMSLayer tl) throws Exception {
        final String layerName = tl.getName();
        // define the meta tile size to 1,1 so we hit all the tiles
        final TileRangeIterator trIter = new TileRangeIterator(tr, tl.getMetaTilingFactors());

        long[] gridLoc = trIter.nextMetaGridLocation(new long[3]);

        while (gridLoc != null) {
            Map<String, String> fullParameters = tr.getParameters();

            final ConveyorTile tile = new ConveyorTile(storageBroker, layerName, tr.getGridSetId(), gridLoc,
View Full Code Here

Examples of org.geowebcache.storage.TileRangeIterator.nextMetaGridLocation()

                    tr.getMimeType(), fullParameters, null, null);
            tile.setTileLayer(tl);
           
            tl.seedTile(tile, false);

            gridLoc = trIter.nextMetaGridLocation(gridLoc);
        }
    }

    private List<ConveyorTile> getTiles(StorageBroker storageBroker, TileRange tr, final WMSLayer tl) throws Exception {
        final String layerName = tl.getName();
View Full Code Here

Examples of org.geowebcache.storage.TileRangeIterator.nextMetaGridLocation()

    private List<ConveyorTile> getTiles(StorageBroker storageBroker, TileRange tr, final WMSLayer tl) throws Exception {
        final String layerName = tl.getName();
        // define the meta tile size to 1,1 so we hit all the tiles
        final TileRangeIterator trIter = new TileRangeIterator(tr, new int[]{1, 1});

        long[] gridLoc = trIter.nextMetaGridLocation(new long[3]);

        // six concurrent requests max
        ExecutorService requests = Executors.newFixedThreadPool(6);
        ExecutorCompletionService completer = new ExecutorCompletionService(requests);
View Full Code Here

Examples of org.geowebcache.storage.TileRangeIterator.nextMetaGridLocation()

                        return null;
                    }
                }
            }));

            gridLoc = trIter.nextMetaGridLocation(gridLoc);
        }
       
        // these assertions could be externalized
        List<ConveyorTile> results = new ArrayList<ConveyorTile>();
        for (int i = 0; i < futures.size(); i++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.