Package org.geotools.ows.wmts.model
Class TileMatrixSet
- Object
-
- TileMatrixSet
-
public class TileMatrixSet extends Object
The geometry of the tiled space.In a tiled map layer, the representation of the space is constrained in a discrete set of parameters. A tile matrix set defines these parameters. Each tile matrix set contains one or more "tile matrices" defining the tiles that are available for that coordinate reference system.
- Author:
- Emanuele Tajariol (etj at geo-solutions dot it)
-
-
Constructor Summary
Constructors Constructor Description TileMatrixSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMatrix(TileMatrix tileMatrix)CRSEnvelopegetBbox()CoordinateReferenceSystemgetCoordinateReferenceSystem()StringgetCrs()StringgetIdentifier()List<TileMatrix>getMatrices()StringgetWellKnownScaleSet()protected CoordinateReferenceSystemparseCoordinateReferenceSystem(String crs)Try and parse the crs string.voidsetBbox(CRSEnvelope bbox)voidsetCoordinateReferenceSystem(CoordinateReferenceSystem coordinateReferenceSystem)voidsetCRS(String crs)voidsetIdentifier(String id)voidsetMatrices(List<TileMatrix> matrices)voidsetWellKnownScaleSet(String wellKnownScaleSet)intsize()StringtoString()
-
-
-
Method Detail
-
setIdentifier
public void setIdentifier(String id)
-
setCRS
public void setCRS(String crs) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
addMatrix
public void addMatrix(TileMatrix tileMatrix)
-
getCrs
public String getCrs()
- Returns:
- the crs
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
-
parseCoordinateReferenceSystem
protected CoordinateReferenceSystem parseCoordinateReferenceSystem(String crs) throws NoSuchAuthorityCodeException, FactoryException
Try and parse the crs string.Also takes care of including deprecated codes like EPSG:900913 replacing them with EPSG:3857.
-
getMatrices
public List<TileMatrix> getMatrices()
- Returns:
- the matrices
-
setMatrices
public void setMatrices(List<TileMatrix> matrices)
- Parameters:
matrices- the matrices to set
-
getIdentifier
public String getIdentifier()
- Returns:
- the identifier
-
getBbox
public CRSEnvelope getBbox()
-
setBbox
public void setBbox(CRSEnvelope bbox)
-
getWellKnownScaleSet
public String getWellKnownScaleSet()
-
setWellKnownScaleSet
public void setWellKnownScaleSet(String wellKnownScaleSet)
-
size
public int size()
- Returns:
- the number of levels in this MatrixSet
-
setCoordinateReferenceSystem
public void setCoordinateReferenceSystem(CoordinateReferenceSystem coordinateReferenceSystem)
-
-