Package org.mapfish.print.map.tiled.wmts
Class Matrix
java.lang.Object
org.mapfish.print.map.tiled.wmts.Matrix
A class representing a matrix.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe id of the matrix.long[]
A 2 dimensional array containing number of tiles in the matrix for the columns (0) and rows (1).double
The scale denominator of the matrix.int[]
A 2 dimensional array representing the width, height of the tile.double[]
A 2 dimensional array representing the top-left corner of the tile. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal double
getResolution
(org.geotools.api.referencing.crs.CoordinateReferenceSystem projection) Get the resolution.final int
Get the height of a tile.final int
Get the width of a tile.final void
Validate the properties have the correct values.
-
Field Details
-
identifier
The id of the matrix. -
matrixSize
public long[] matrixSizeA 2 dimensional array containing number of tiles in the matrix for the columns (0) and rows (1). -
scaleDenominator
public double scaleDenominatorThe scale denominator of the matrix. -
tileSize
public int[] tileSizeA 2 dimensional array representing the width, height of the tile. -
topLeftCorner
public double[] topLeftCornerA 2 dimensional array representing the top-left corner of the tile.
-
-
Constructor Details
-
Matrix
public Matrix()
-
-
Method Details
-
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
-