Class PackageTileMask

java.lang.Object
com.massifmaps.packagemanager.PackageTileMask

public class PackageTileMask extends Object
Tile mask contains map package spatial coverage information and
can be used for very fast 'tile in package' tests.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • getStringValue

      public String getStringValue()
      Returns the encoded tile mask value. This should not be displayed to the user.
      Returns:
      The tile mask of the package.
    • getMaxZoomLevel

      public int getMaxZoomLevel()
      Returns maximum zoom level encoded in this tilemask.
      Returns:
      The maximum zoom level encoded in this tilemask.
    • getBoundingPolygon

      public MultiPolygonGeometry getBoundingPolygon(Projection projection)
      Returns the bounding polygon of the tilemask.
      Parameters:
      projection - The projection to use.
      Returns:
      The bounding polygon of the tilemask area.
    • getTileStatus

      public int getTileStatus(MapTile tile)
      Returns the status of the specified tile. This method can be used for fast testing whether a tile is part of the package.
      Parameters:
      tile - The tile to check.
      Returns:
      The status of the specified tile.