void init(TileEntry e) { super.init(e); setTileMatricies(e.getTileMatricies()); this.tileMatrixSetBounds = e.tileMatrixSetBounds == null ? null : new ReferencedEnvelope(e.tileMatrixSetBounds); }
@Override protected double[] getHighestRes(String coverageName) { if (!checkName(coverageName)) { throw new IllegalArgumentException( "The specified coverageName " + coverageName + "is not supported"); } List<TileMatrix> matrices = tiles.get(coverageName).getTileMatricies(); TileMatrix matrix = matrices.get(matrices.size() - 1); return new double[] {matrix.getXPixelSize(), matrix.getYPixelSize()}; }
@Override public GridEnvelope getOriginalGridRange(String coverageName) { if (!checkName(coverageName)) { throw new IllegalArgumentException( "The specified coverageName " + coverageName + "is not supported"); } List<TileMatrix> matrices = tiles.get(coverageName).getTileMatricies(); TileMatrix matrix = matrices.get(matrices.size() - 1); return new GridEnvelope2D( new Rectangle( matrix.getMatrixWidth() * matrix.getTileWidth(), matrix.getMatrixHeight() * matrix.getTileHeight())); }
public GeoPackageReader(Object source, Hints hints) throws IOException { coverageFactory = CoverageFactoryFinder.getGridCoverageFactory(this.hints); sourceFile = GeoPackageFormat.getFileFromSource(source); file = new GeoPackage(sourceFile, null, null, true); for (TileEntry tile : file.tiles()) { tiles.put(tile.getTableName(), tile); } // have a sane default when hit with no name, useful in particular // when the geopackage only has one coverage coverageName = tiles.keySet().iterator().next(); // add the overview count and allocate the final List<TileMatrix> tileMatricies = tiles.get(coverageName).getTileMatricies(); this.numOverviews = tileMatricies.size() - 1; overViewResolutions = new double[numOverviews][2]; // first tile matrix is the one with the lowest resolution, last one is native for (int i = 0; i < tileMatricies.size() - 1; i++) { final TileMatrix matrix = tileMatricies.get(i); overViewResolutions[tileMatricies.size() - i - 2] = new double[] {matrix.getXPixelSize(), matrix.getYPixelSize()}; } }
m.setTiles(rsm.getBoolean("has_tiles")); e.getTileMatricies().add(m);
for (TileMatrix matrix : entry.getTileMatricies()) { if (!matrix.hasTiles()) { continue; for (TileMatrix matrix : entry.getTileMatricies()) { if (!matrix.hasTiles()) { continue;
.statement(); try { for (TileMatrix m : e.getTileMatricies()) { prepare(st) .set(e.getTableName())
void init(TileEntry e) { super.init(e); setTileMatricies(e.getTileMatricies()); this.tileMatrixSetBounds = e.tileMatrixSetBounds == null ? null : new ReferencedEnvelope(e.tileMatrixSetBounds); }
@Override protected double[] getHighestRes(String coverageName) { if (!checkName(coverageName)) { throw new IllegalArgumentException( "The specified coverageName " + coverageName + "is not supported"); } List<TileMatrix> matrices = tiles.get(coverageName).getTileMatricies(); TileMatrix matrix = matrices.get(matrices.size() - 1); return new double[] {matrix.getXPixelSize(), matrix.getYPixelSize()}; }
@Override public GridEnvelope getOriginalGridRange(String coverageName) { if (!checkName(coverageName)) { throw new IllegalArgumentException( "The specified coverageName " + coverageName + "is not supported"); } List<TileMatrix> matrices = tiles.get(coverageName).getTileMatricies(); TileMatrix matrix = matrices.get(matrices.size() - 1); return new GridEnvelope2D( new Rectangle( matrix.getMatrixWidth() * matrix.getTileWidth(), matrix.getMatrixHeight() * matrix.getTileHeight())); }
m.setTiles(rsm.getBoolean("has_tiles")); e.getTileMatricies().add(m);
.statement(); try { for (TileMatrix m : e.getTileMatricies()) { prepare(st) .set(e.getTableName())
for (TileMatrix matrix : entry.getTileMatricies()) { if (!matrix.hasTiles()) { continue; for (TileMatrix matrix : entry.getTileMatricies()) { if (!matrix.hasTiles()) { continue;