Examples of GridSetBroker


Examples of org.geowebcache.grid.GridSetBroker

        when(tileLayer.getMimeTypes()).thenReturn(ImmutableList.of(mimeType1, mimeType2));

        Map<String, GridSubset> subsets = Maps.newHashMap();
        Multimap<SRS, GridSubset> bySrs = LinkedHashMultimap.create();

        GridSetBroker broker = gridSetBroker;

        for (String gsetName : gridSetNames) {
            GridSet gridSet = broker.get(gsetName);
            XMLGridSubset xmlGridSubset = new XMLGridSubset();
            String gridSetName = gridSet.getName();
            xmlGridSubset.setGridSetName(gridSetName);
            GridSubset gridSubSet = xmlGridSubset.getGridSubSet(broker);
            subsets.put(gsetName, gridSubSet);
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

        Catalog cat = (Catalog) applicationContext.getBean("rawCatalog");

        TileLayerDispatcher tld = (TileLayerDispatcher) applicationContext
                .getBean("gwcTLDispatcher");
       
        GridSetBroker gridSetBroker = (GridSetBroker) applicationContext.getBean("gwcGridSetBroker");

        try {
            tld.getTileLayer("");
        } catch (GeoWebCacheException gwce) {
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

        XMLConfiguration xmlConfig = loadXMLConfig();
        LinkedList<Configuration> configList = new LinkedList<Configuration>();
        configList.add(xmlConfig);

        layerDispatcher = new TileLayerDispatcher(new GridSetBroker(true, true), configList);

        tilePageCalculator = new TilePageCalculator(layerDispatcher);

        // prepare a connection pool for tests against a H2 database
        dataSource = getDataSource();
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

    private String gridsetId;

    public void setUp() {
        RasterMaskTestUtils.debugToDisk = debugToDisk;
        layer = TestUtils.createWMSLayer("image/png", new GridSetBroker(false, false), 3, 3,
                new BoundingBox(-180, -90, 180, 90));
        gridsetId = layer.getGridSubsets().iterator().next();
    }
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

    public void setUp() throws Exception {
    }
   
    @Test
    public void testDelegateInitializingLayers() throws Exception {
        GridSetBroker broker = new GridSetBroker(false, false);
        String url = "http://test/wms";
        String mimeTypes = "image/png";
       
        final WebMapServer server = createMock(WebMapServer.class);
        WMSCapabilities cap = createMock(WMSCapabilities.class);
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

    private long[][] fullCoverage;

    public void setUp() {
        RasterMaskTestUtils.debugToDisk = debugToDisk;
        layer = TestUtils.createWMSLayer("image/png", new GridSetBroker(false, false), 3, 3,
                new BoundingBox(-180, -90, 180, 90));
        gridsetId = layer.getGridSubsets().iterator().next();
        fullCoverage = layer.getGridSubset(gridsetId).getCoverages();
    }
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

    private GridSetBroker gridsetBroker;

    protected void setUp() throws Exception {
        sb = mock(StorageBroker.class);
        tld = mock(TileLayerDispatcher.class);
        gridsetBroker = new GridSetBroker(true, true);
    }
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

        when(tileLayer.getMimeTypes()).thenReturn(Arrays.asList(mimeType1, mimeType2));

        Map<String, GridSubset> subsets = new HashMap<String, GridSubset>();
        Map<SRS, List<GridSubset>> bySrs = new HashMap<SRS, List<GridSubset>>();

        GridSetBroker broker = gridsetBroker;

        for (String gsetName : gridSetNames) {
            GridSet gridSet = broker.get(gsetName);
            XMLGridSubset xmlGridSubset = new XMLGridSubset();
            String gridSetName = gridSet.getName();
            xmlGridSubset.setGridSetName(gridSetName);
            GridSubset gridSubSet = xmlGridSubset.getGridSubSet(broker);
            subsets.put(gsetName, gridSubSet);
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

        is = XMLConfiguration.class.getResourceAsStream(fileName);

        XMLConfiguration xmlConfig = new XMLConfiguration(is);

        GridSetBroker gsb = new GridSetBroker(false, false);
        xmlConfig.initialize(gsb);

        List<TileLayer> list = xmlConfig.getTileLayers();

        Iterator<TileLayer> iter = list.iterator();
View Full Code Here

Examples of org.geowebcache.grid.GridSetBroker

    @Override
    public void setUp() throws Exception {
        mimeType = MimeType.createFromFormat("image/png");
        parameters = null;
        gridSet = new GridSetBroker(true, false).WORLD_EPSG3857;
        BoundingBox extent = new BoundingBox(0, 0, 100, 100);
        boolean alignTopLeft = false;
        int levels = 12;
        Double metersPerUnit = Double.valueOf(1);
        double pixelSize = 1;
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.