Package com.massifmaps.packagemanager
Class PackageTileMask
java.lang.Object
com.massifmaps.packagemanager.PackageTileMask
Tile mask contains map package spatial coverage information and
can be used for very fast 'tile in package' tests.
can be used for very fast 'tile in package' tests.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.getBoundingPolygon(Projection projection) Returns the bounding polygon of the tilemask.intReturns maximum zoom level encoded in this tilemask.Returns the encoded tile mask value.intgetTileStatus(MapTile tile) Returns the status of the specified tile.inthashCode()Returns the hash value of this object.
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
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
Returns the bounding polygon of the tilemask.- Parameters:
projection- The projection to use.- Returns:
- The bounding polygon of the tilemask area.
-
getTileStatus
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.
-