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 void
addMatrix(TileMatrix tileMatrix)
CRSEnvelope
getBbox()
CoordinateReferenceSystem
getCoordinateReferenceSystem()
String
getCrs()
String
getIdentifier()
List<TileMatrix>
getMatrices()
String
getWellKnownScaleSet()
protected CoordinateReferenceSystem
parseCoordinateReferenceSystem(String crs)
Try and parse the crs string.void
setBbox(CRSEnvelope bbox)
void
setCoordinateReferenceSystem(CoordinateReferenceSystem coordinateReferenceSystem)
void
setCRS(String crs)
void
setIdentifier(String id)
void
setMatrices(List<TileMatrix> matrices)
void
setWellKnownScaleSet(String wellKnownScaleSet)
int
size()
String
toString()
-
-
-
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)
-
-