Package org.mapfish.print.map.tiled.wmts
Class Matrix
- java.lang.Object
-
- org.mapfish.print.map.tiled.wmts.Matrix
-
public class Matrix extends java.lang.Object
A class representing a matrix.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
identifier
The id of the matrix.long[]
matrixSize
A 2 dimensional array containing number of tiles in the matrix for the columns (0) and rows (1).double
scaleDenominator
The scale denominator of the matrix.int[]
tileSize
A 2 dimensional array representing the width, height of the tile.double[]
topLeftCorner
A 2 dimensional array representing the top-left corner of the tile.
-
Constructor Summary
Constructors Constructor Description Matrix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getResolution(org.geotools.api.referencing.crs.CoordinateReferenceSystem projection)
Get the resolution.int
getTileHeight()
Get the height of a tile.int
getTileWidth()
Get the width of a tile.void
postConstruct()
Validate the properties have the correct values.
-
-
-
Field Detail
-
identifier
public java.lang.String identifier
The id of the matrix.
-
matrixSize
public long[] matrixSize
A 2 dimensional array containing number of tiles in the matrix for the columns (0) and rows (1).
-
scaleDenominator
public double scaleDenominator
The scale denominator of the matrix.
-
tileSize
public int[] tileSize
A 2 dimensional array representing the width, height of the tile.
-
topLeftCorner
public double[] topLeftCorner
A 2 dimensional array representing the top-left corner of the tile.
-
-
Method Detail
-
postConstruct
public final void postConstruct()
Validate the properties have the correct values.
-
getTileWidth
public final int getTileWidth()
Get the width of a tile.
-
getTileHeight
public final int getTileHeight()
Get the height of a tile.
-
getResolution
public final double getResolution(org.geotools.api.referencing.crs.CoordinateReferenceSystem projection)
Get the resolution.- Parameters:
projection
- The map projection
-
-