Class TileMatrix
- java.lang.Object
-
- com.supermap.services.wmts.TileMatrix
-
- All Implemented Interfaces:
- java.io.Serializable
public class TileMatrix extends java.lang.Object implements java.io.SerializableThe tile matrix.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.StringidentifierThe tile matrix name.intmatrixHeightThe height of the tile matrix, represented by the number of tiles in the Y direction.intmatrixWidthThe width of the tile matrix, represented by the number of tiles in the X direction.doubleresolutionTile matrix resolution.doublescaleDenominatorThe scale denominator.inttileHeightThe height of each tile, in pixels.inttileWidthThe width of each tile, in pixels.java.lang.StringtopLeftCornerthe coordinates of the top-left corner.
-
Constructor Summary
Constructors Constructor and Description TileMatrix()The Constructor.TileMatrix(java.lang.String identifier, double scaleDenominator, double resolution, java.lang.String topLeftCorner, int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)The Constructor.
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Determines whether the specified object is equal to theTileMatrixobject.inthashCode()Get the hash code of theTileMatrixobject.
-
-
-
Field Detail
-
identifier
public java.lang.String identifier
The tile matrix name.
-
scaleDenominator
public double scaleDenominator
The scale denominator.
If the scale denominator is 2000, the tile matrix corresponds to a map scale of 1:2000.
-
resolution
public double resolution
Tile matrix resolution.
-
topLeftCorner
public java.lang.String topLeftCorner
the coordinates of the top-left corner.
Ie the upper left corner of the tile matrix. Format is "x y", there is a space between x and y, with such a string to represent.
-
tileWidth
public int tileWidth
The width of each tile, in pixels. SuperMap iServer currently provides a tile width of 512 pixels.
-
tileHeight
public int tileHeight
The height of each tile, in pixels. SuperMap iServer currently provides a tile height of 512 pixels.
-
matrixWidth
public int matrixWidth
The width of the tile matrix, represented by the number of tiles in the X direction.
-
matrixHeight
public int matrixHeight
The height of the tile matrix, represented by the number of tiles in the Y direction.
-
-
Constructor Detail
-
TileMatrix
public TileMatrix(java.lang.String identifier, double scaleDenominator, double resolution, java.lang.String topLeftCorner, int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)The Constructor.
- Parameters:
identifier- the tile matrix name.scaleDenominator- scale denominator.topLeftCorner- the upper left corner coordinates.tileWidth- The width of each tile, in pixels.tileHeight- The height of each tile, in pixels.matrixWidth- The width of the tile matrix, represented by the number of tiles in the X direction.matrixHeight- The height of the tile matrix, represented by the number of tiles in the Y direction.
-
TileMatrix
public TileMatrix()
The Constructor.
-
-
Method Detail
-
hashCode
public int hashCode()
Get the hash code of the
TileMatrixobject.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code value.
-
equals
public boolean equals(java.lang.Object obj)
Determines whether the specified object is equal to the
TileMatrixobject.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the Java object to compare with this object.- Returns:
- true if it is equal; false otherwise.
-
-