Class TLcdWMTSLayer

java.lang.Object
com.luciad.ogc.wmts.TLcdWMTSLayer

public class TLcdWMTSLayer extends Object
Represents a WMTS layer:
Since:
2013.0
  • Constructor Details

    • TLcdWMTSLayer

      public TLcdWMTSLayer(URI aUri, String aId, String aTitle, String aAbstract, Collection<String> aFormats, Collection<String> aStyles, Map<String,Collection<String>> aDimensions, boolean aTileStructureQuadTree)
      Creates a new layer representation.
      Parameters:
      aUri - The URI of the WMTS server
      aId - The unique WMTS layer identifier
      aTitle - A display name
      aAbstract - An abstract
      aFormats - The supported tile data formats
      aStyles - The support style identifiers
      aDimensions - The supported dimensions and their possible values
      aTileStructureQuadTree - Whether the WMTS layer has a tile matrix set compatible with ILcdEarthTileSet
    • TLcdWMTSLayer

      public TLcdWMTSLayer(URI aUri, String aId, String aTitle, String aAbstract, Collection<String> aFormats, Collection<String> aStyles, Map<String,Collection<String>> aDimensions, boolean aTileStructureQuadTree, ILcdBounds aBounds)
      Creates a new layer representation.
      Parameters:
      aUri - The URI of the WMTS server
      aId - The unique WMTS layer identifier
      aTitle - A display name
      aAbstract - An abstract
      aFormats - The supported tile data formats
      aStyles - The support style identifiers
      aDimensions - The supported dimensions and their possible values
      aTileStructureQuadTree - Whether the WMTS layer has a tile matrix set compatible with ILcdEarthTileSet
      aBounds - The bounds of the data expressed in WGS 84 lon/lat coordinates
      Since:
      2017.1
    • TLcdWMTSLayer

      public TLcdWMTSLayer(URI aUri, String aId, String aTitle, String aAbstract, Collection<String> aFormats, Collection<String> aInfoFormats, Collection<String> aStyles, String aDefaultStyle, Map<String,Collection<String>> aDimensions, Map<String,String> aDefaultDimensions, List<TLcdPair<String,List<String>>> aTileMatrixSets, boolean aTileStructureQuadTree, ILcdBounds aBounds)
      Creates a new layer representation.
      Parameters:
      aUri - The URI of the WMTS server
      aId - The unique WMTS layer identifier
      aTitle - A display name
      aAbstract - An abstract
      aFormats - The supported tile data formats
      aInfoFormats - The supported valid output formats for a GetFeatureInfo response
      aStyles - The support style identifiers
      aDefaultStyle - The default style identifier
      aDimensions - The supported dimensions and their possible values
      aDefaultDimensions - The default dimensions
      aTileMatrixSets - List of matrix sets. Each matrix set is stored as a TLcdPair where the key is the tileMatrixSetId and the value is a list of tileMatrixIds ordered by scale
      aTileStructureQuadTree - Whether the WMTS layer has a tile matrix set compatible with ILcdEarthTileSet
      aBounds - The bounds of the data expressed in WGS 84 lon/lat coordinates
      Since:
      2021.0
  • Method Details

    • getUri

      public URI getUri()
      Returns the URI of the WMTS server that hosts this layer.
      Returns:
      The URI of the WMTS server
    • getAbstract

      public String getAbstract()
      Returns the abstract for this WMTS layer, null if absent.
      Returns:
      The abstract for this WMTS layer, possibly null.
    • getFormats

      public Collection<String> getFormats()
      Returns the supported formats (mime types) for tile image data in this WMTS layer.

      Always contains at least one format.

      Returns:
      The set of supported formats, never null or empty.
    • getInfoFormats

      public Collection<String> getInfoFormats()
      Returns the supported info formats (mime types) for a GetFeatureInfo response.

      Can be empty.

      Returns:
      The set of supported info formats, never null.
      Since:
      2021.0
    • getId

      public String getId()
      Returns the unique identifier of this WMTS layer.
      Returns:
      The unique identifier for this WMTS layer, never null or "".
    • getStyles

      public Collection<String> getStyles()
      Returns the supported styles (identifiers) for this WMTS layer.

      Always contains at least one style ID.

      Returns:
      The set of supported styles, never null or empty.
    • getDefaultStyle

      public String getDefaultStyle()
      Returns the default style (identifier) for this WMTS layer.
      Returns:
      Returns the default style (identifier) for this WMTS layer. Can be null if it has not been set.
      Since:
      2021.0
    • getTitle

      public String getTitle()
      Returns the display name for this WMTS layer, null if absent.
      Returns:
      The display name for this WMTS layer.
    • getDimensions

      public Collection<String> getDimensions()
      Returns the supported dimensions for this WMTS layer.

      Can be empty.

      To get the supported values for this dimension, see getDimensionValues(String).

      Returns:
      The set of supported dimensions, never null.
    • getDimensionValues

      public Collection<String> getDimensionValues(String aDimension)
      Returns the supported values for the given dimension in this WMTS layer.

      The dimension must exist for this layer.

      The first item in the returned collection is the default value.

      Parameters:
      aDimension - A dimension identifier, must exist in getDimensions().
      Returns:
      The set of supported values for this dimension, never null.
    • getDefaultDimensions

      public Map<String,String> getDefaultDimensions()
      Returns the default dimensions as specified by the capabilities.
      Returns:
      A map with default dimensions. If there no dimensions an empty map is returned.
      Since:
      2021.0
    • isTileStructureQuadTree

      public boolean isTileStructureQuadTree()
      Indicates whether this WMTS layer has a tile structure of quad-tree
      Returns:
      true if the full tiling structure a quad-tree, false otherwise
    • getTileMatrixSets

      public List<TLcdPair<String,List<String>>> getTileMatrixSets()
      Returns a list of matrix sets. Each matrix set is stored as a TLcdPair where the key is the tileMatrixSetId and the value is a list of tileMatrixIds ordered by scale
      Returns:
      The list of matrix sets
      Since:
      2021.0
    • getWGS84LonLatBounds

      public ILcdBounds getWGS84LonLatBounds()
      Returns the bounds of the data inside this layer, expressed in WGS 84 lot / lat bounds. As the bounds information is optional, null is returned if no bounds are defined.
      Returns:
      the bounds of the data inside this layer, expressed in WGS 84 lot / lat bounds, or null if the bounds are not defined.
      Since:
      2017.1
    • toString

      public String toString()
      Overrides:
      toString in class Object