com.supermap.services.wmts

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.Serializable
    

    The tile matrix.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.lang.String identifier
      The tile matrix name.
      int matrixHeight
      The height of the tile matrix, represented by the number of tiles in the Y direction.
      int matrixWidth
      The width of the tile matrix, represented by the number of tiles in the X direction.
      double resolution
      Tile matrix resolution.
      double scaleDenominator
      The scale denominator.
      int tileHeight
      The height of each tile, in pixels.
      int tileWidth
      The width of each tile, in pixels.
      java.lang.String topLeftCorner
      the 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
      boolean equals(java.lang.Object obj)
      Determines whether the specified object is equal to the TileMatrix object.
      int hashCode()
      Get the hash code of the TileMatrix object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 TileMatrix object.

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hash code value.
      • equals

        public boolean equals(java.lang.Object obj)
        

        Determines whether the specified object is equal to the TileMatrix object.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the Java object to compare with this object.
        Returns:
        true if it is equal; false otherwise.