public class

PackageTileMask

extends Object
java.lang.Object
   ↳ com.carto.packagemanager.PackageTileMask

Class Overview

Tile mask contains map package spatial coverage information and
can be used for very fast 'tile in package' tests.

Summary

Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
MultiPolygonGeometry getBoundingPolygon(Projection projection)
Returns the bounding polygon of the tilemask.
int getMaxZoomLevel()
Returns maximum zoom level encoded in this tilemask.
String getStringValue()
Returns the encoded tile mask value.
PackageTileStatus getTileStatus(MapTile tile)
Returns the status of the specified tile.
int hashCode()
Returns the hash value of this object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

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.

public int getMaxZoomLevel ()

Returns maximum zoom level encoded in this tilemask.

Returns
  • The maximum zoom level encoded in this tilemask.

public String getStringValue ()

Returns the encoded tile mask value. This should not be displayed to the user.

Returns
  • The tile mask of the package.

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

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.