# Interface TiledResource

All Superinterfaces:
  `Resource`

All Known Subinterfaces:
  `WritableTiledResource`

public interface TiledResource extends Resource
A resource which content can be accessed by smaller chunks called tiles. The use of `TiledResource` is not strictly necessary for efficient data loading because `Resource` implementations should automatically take advantage of tiling when answering requests. However, clients may use this information for optimizing their loading strategy.

A `TiledResource` may contain multiple `TileMatrixSet` instances, each one for a different `CoordinateReferenceSystem`. Most format specifications only support a single `TileMatrixSet`, but a few ones like WMTS may have several.

All methods in this interface return non-null values.

Since:
  1.2

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from interface Resource

  `Resource​.FileSet`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Collection<? extends TileMatrixSet>`
  `getTileMatrixSets()`
  Returns the collection of all available tile matrix sets in this resource.

  ### Methods inherited from interface Resource

  `addListener, getFileSet, getIdentifier, getMetadata, removeListener`

- ## Method Details

  - ### getTileMatrixSets

    Collection<? extends TileMatrixSet> getTileMatrixSets() throws DataStoreException
    Returns the collection of all available tile matrix sets in this resource. The returned collection typically contains exactly one instance.
    Returns:
      all available `TileMatrixSet` instances, or an empty collection if none.
    Throws:
      `DataStoreException` - if an error occurred while fetching the tile matrix sets.