Class GeoPackageOverlayFactory

java.lang.Object
mil.nga.geopackage.map.tiles.overlay.GeoPackageOverlayFactory

public class GeoPackageOverlayFactory extends Object
Get a tile provider for the Tile DAO
  • Constructor Details

    • GeoPackageOverlayFactory

      public GeoPackageOverlayFactory()
  • Method Details

    • getTileProvider

      public static TileProvider getTileProvider(TileDao tileDao)
      Get a Tile Provider for the Tile DAO
      Parameters:
      tileDao - tile dao
      Returns:
      tile provider
    • getTileProvider

      public static TileProvider getTileProvider(TileDao tileDao, TileScaling scaling)
      Get a Tile Provider for the Tile DAO with the tile creator options
      Parameters:
      tileDao - tile dao
      scaling - tile scaling options
      Returns:
      tile provider
      Since:
      2.0.2
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(TileDao tileDao)
      Get a Bounded Overlay Tile Provider for the Tile DAO
      Parameters:
      tileDao - tile dao
      Returns:
      bounded overlay
      Since:
      1.2.5
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(TileDao tileDao, float density)
      Get a Bounded Overlay Tile Provider for the Tile DAO with the display density
      Parameters:
      tileDao - tile dao
      density - display density: DisplayMetrics.density
      Returns:
      bounded overlay
      Since:
      3.2.0
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(TileDao tileDao, TileScaling scaling)
      Get a Bounded Overlay Tile Provider for the Tile DAO with the tile creator options
      Parameters:
      tileDao - tile dao
      scaling - tile scaling options
      Returns:
      bounded overlay
      Since:
      2.0.2
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(TileDao tileDao, float density, TileScaling scaling)
      Get a Bounded Overlay Tile Provider for the Tile DAO with the display density and tile creator options
      Parameters:
      tileDao - tile dao
      density - display density: DisplayMetrics.density
      scaling - tile scaling options
      Returns:
      bounded overlay
      Since:
      3.2.0
    • getCompositeOverlay

      public static CompositeOverlay getCompositeOverlay(TileDao tileDao, BoundedOverlay overlay)
      Create a composite overlay by first adding a tile overlay for the tile DAO followed by the provided overlay
      Parameters:
      tileDao - tile dao
      overlay - bounded overlay
      Returns:
      composite overlay
    • getCompositeOverlay

      public static CompositeOverlay getCompositeOverlay(Collection<TileDao> tileDaos, BoundedOverlay overlay)
      Create a composite overlay by first adding tile overlays for the tile DAOs followed by the provided overlay
      Parameters:
      tileDaos - collection of tile daos
      overlay - bounded overlay
      Returns:
      composite overlay
    • getCompositeOverlay

      public static CompositeOverlay getCompositeOverlay(Collection<TileDao> tileDaos)
      Create a composite overlay by adding tile overlays for the tile DAOs
      Parameters:
      tileDaos - collection of tile daos
      Returns:
      composite overlay
    • getLinkedFeatureOverlay

      public static BoundedOverlay getLinkedFeatureOverlay(FeatureOverlay featureOverlay, GeoPackage geoPackage)
      Create a composite overlay linking the feature overly with
      Parameters:
      featureOverlay - feature overlay
      geoPackage - GeoPackage
      Returns:
      linked bounded overlay
    • getTile

      public static Tile getTile(GeoPackageTile geoPackageTile)
      Get a map tile from the GeoPackage tile
      Parameters:
      geoPackageTile - GeoPackage tile
      Returns:
      tile
    • getTileProvider

      public static TileProvider getTileProvider(Context context, GeoPackage geoPackage, String table)
      Get a Tile Provider for a tile or feature table
      Parameters:
      context - context
      geoPackage - GeoPackage
      table - tile or feature table
      Returns:
      tile provider
      Since:
      6.7.4
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, String table)
      Get a Bounded Overlay Tile Provider for a tile or feature table
      Parameters:
      context - context
      geoPackage - GeoPackage
      table - tile or feature table
      Returns:
      bounded overlay
      Since:
      6.7.4
    • getTileProvider

      public static TileProvider getTileProvider(Context context, GeoPackage geoPackage, String table, float density)
      Get a Tile Provider for a tile or feature table
      Parameters:
      context - context
      geoPackage - GeoPackage
      table - tile or feature table
      density - display density: DisplayMetrics.density
      Returns:
      tile provider
      Since:
      6.7.4
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, String table, float density)
      Get a Bounded Overlay Tile Provider for a tile or feature table
      Parameters:
      context - context
      geoPackage - GeoPackage
      table - tile or feature table
      density - display density: DisplayMetrics.density
      Returns:
      bounded overlay
      Since:
      6.7.4
    • getTileProvider

      public static TileProvider getTileProvider(Context context, GeoPackage geoPackage, UserDao<?,?,?,?> userDao)
      Get a Tile Provider for a tile or feature DAO
      Parameters:
      context - context
      geoPackage - GeoPackage
      userDao - user DAO
      Returns:
      tile provider
      Since:
      6.7.4
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, UserDao<?,?,?,?> userDao)
      Get a Bounded Overlay Tile Provider for a tile or feature DAO
      Parameters:
      context - context
      geoPackage - GeoPackage
      userDao - user DAO
      Returns:
      bounded overlay
      Since:
      6.7.4
    • getTileProvider

      public static TileProvider getTileProvider(Context context, GeoPackage geoPackage, UserDao<?,?,?,?> userDao, float density)
      Get a Tile Provider for a tile or feature DAO
      Parameters:
      context - context
      geoPackage - GeoPackage
      userDao - user DAO
      density - display density: DisplayMetrics.density
      Returns:
      tile provider
      Since:
      6.7.4
    • getBoundedOverlay

      public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, UserDao<?,?,?,?> userDao, float density)
      Get a Bounded Overlay Tile Provider for a tile or feature DAO
      Parameters:
      context - context
      geoPackage - GeoPackage
      userDao - user DAO
      density - display density: DisplayMetrics.density
      Returns:
      bounded overlay
      Since:
      6.7.4