Class Matrix

java.lang.Object
org.mapfish.print.map.tiled.wmts.Matrix

public class Matrix extends Object
A class representing a matrix.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • identifier

      public 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.
  • 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