Interface WritableTileMatrix
- All Superinterfaces:
TileMatrix
A
TileMatrix that can write and delete tiles.
All methods in this interface expect non-null arguments.
- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionlongdeleteTiles(GridExtent indicesRanges) Deletes all existing tiles in the given region.voidwriteTiles(Stream<Tile> tiles) Writes a stream of tiles.Methods inherited from interface TileMatrix
getIdentifier, getMetadata, getResolution, getTile, getTiles, getTileStatus, getTilingSchemeModifier and TypeMethodDescriptionReturns an alphanumeric identifier which is unique in theTileMatrixSetthat contains thisTileMatrix.default MetadataReturns information about this tile matrix.double[]Returns the resolution (in units of CRS axes) at which tiles in this matrix should be used.getTile(long... indices) Gets a tile at the given indices.getTiles(GridExtent indiceRanges, boolean parallel) Retrieves a stream of existing tiles in the specified region.getTileStatus(long... indices) Fetches information about whether a tile exists, is missing or failed to load.Returns a description about how space is partitioned into individual tiled units.
-
Method Details
-
writeTiles
Writes a stream of tiles. The caller must ensure that all tiles are compatible with the tiling scheme of this tile matrix set. If a tile already exists, it will be overwritten.- Parameters:
tiles- the tiles to write.- Throws:
ReadOnlyStorageException- if this tile matrix is not writable. It may be caused by insufficient credentials.IncompatibleResourceException- if a tile is not compatible with the tiling scheme of this tile matrix.DataStoreException- if writing the tiles failed for another reason.
-
deleteTiles
Deletes all existing tiles in the given region. After this method call, the status of all tiles in the given region becomeTileStatus.MISSING. Tiles that were already missing are silently ignored.- Parameters:
indicesRanges- ranges of tile indices in all dimensions, ornullfor all tiles.- Returns:
- number of tiles deleted (i.e. not counting the tiles that were already missing).
- Throws:
ReadOnlyStorageException- if this tile matrix is not writable. It may be caused by insufficient credentials.DataStoreException- if deleting the tile failed for another reason.
-