Examples of tiles()


Examples of org.brixcms.plugin.site.page.AbstractContainer.tiles()

    public Collection<String> getGlobalTileIDs(JcrSession session) {
        AbstractContainer globalContainer = getGlobalContainer(session);
        Set<String> result;
        if (globalContainer != null) {
            result = new HashSet<String>();
            for (BrixNode n : globalContainer.tiles().getTileNodes()) {
                String id = TileContainerFacet.getTileId(n);
                if (!Strings.isEmpty(id)) {
                    result.add(id);
                }
            }
View Full Code Here

Examples of org.geotools.geopkg.GeoPackage.tiles()

       coverageFactory = CoverageFactoryFinder.getGridCoverageFactory(this.hints);
      
       sourceFile = GeoPackageFormat.getFileFromSource(source);
       GeoPackage file = new GeoPackage(sourceFile);
       try {
            for (TileEntry tile : file.tiles()){
                tiles.put(tile.getTableName(), tile);
            }
       } finally {
           file.close();
       }
View Full Code Here

Examples of org.geotools.geopkg.GeoPackage.tiles()

        WebMap map = format.produceMap(mapContent);
        GeoPackage geopkg = createGeoPackage(map);

        assertTrue(geopkg.features().isEmpty());
        assertTrue(geopkg.rasters().isEmpty());
        assertEquals(1, geopkg.tiles().size());
        assertNotNull(geopkg.tile("World_Lakes"));
    }

    GeoPackage createGeoPackage(WebMap map) throws IOException {
        assertTrue(map instanceof RawMap);
View Full Code Here

Examples of org.geotools.geopkg.GeoPackage.tiles()

        fr = gpkg.reader(fe, null, null);
        assertTrue(fr.hasNext());
        fr.next();
        fr.close();
       
        List<TileEntry> tiles = gpkg.tiles();
        assertEquals(2, tiles.size());
       
        TileEntry te = tiles.get(0);
        assertEquals("world_lakes", te.getTableName());
        assertEquals("world and lakes overlay", te.getDescription());
View Full Code Here

Examples of org.geotools.geopkg.GeoPackage.tiles()

        assertEquals("test.gpkg", file.getName());
        assertTrue(file.exists());
       
        GeoPackage gpkg = new GeoPackage(file);
       
        List<TileEntry> tiles = gpkg.tiles();
        assertEquals(1, tiles.size());
       
        TileEntry te = tiles.get(0);
        assertEquals("world_lakes", te.getTableName());
        assertEquals("world and lakes overlay", te.getDescription());
View Full Code Here

Examples of org.geotools.geopkg.GeoPackage.tiles()

        assertNotNull(file);
        assertTrue(file.exists());
       
        GeoPackage gpkg = new GeoPackage(file);
       
        List<TileEntry> tiles = gpkg.tiles();
        assertEquals(1, tiles.size());
       
        TileEntry te = tiles.get(0);
        assertEquals("world_lakes", te.getTableName());
        assertEquals("world and lakes overlay", te.getDescription());
View Full Code Here

Examples of org.geotools.mbtiles.MBTilesFile.tiles()

                       
        BufferedImage image = null;
       
        MBTilesFile.TileIterator it;
        try {
          it = file.tiles(zoomLevel, leftTile, bottomTile, rightTile, topTile);
        } catch (SQLException e) {
            throw new IOException(e);
        }

        while (it.hasNext()) {               
View Full Code Here

Examples of org.geotools.mbtiles.MBTilesFile.tiles()

        assertEquals(MBTilesMetadata.t_type.OVERLAY, metadata.getType());
        assertEquals(MBTilesMetadata.t_format.PNG, metadata.getFormat());
       
        assertEquals(1, mbtiles.numberOfTiles());

        MBTilesFile.TileIterator tiles = mbtiles.tiles();
        assertTrue(tiles.hasNext());
        MBTilesTile e = tiles.next();
        assertEquals(10, e.getZoomLevel());
        assertEquals(511, e.getTileColumn());
        assertEquals(512, e.getTileRow());
View Full Code Here

Examples of org.geotools.mbtiles.MBTilesFile.tiles()

        assertEquals(MBTilesMetadata.t_type.OVERLAY, metadata.getType());
        assertEquals(MBTilesMetadata.t_format.PNG, metadata.getFormat());
       
        assertEquals(1, mbtiles.numberOfTiles());

        MBTilesFile.TileIterator tiles = mbtiles.tiles();
        assertTrue(tiles.hasNext());
        MBTilesTile e = tiles.next();
        assertEquals(10, e.getZoomLevel());
        assertEquals(511, e.getTileColumn());
        assertEquals(512, e.getTileRow());
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.