Class TileScaling
- java.lang.Object
-
- mil.nga.geopackage.extension.nga.scale.TileScaling
-
public class TileScaling extends Object
Tile Scaling object, for scaling tiles from nearby zoom levels for missing tiles- Since:
- 2.0.2
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLUMN_SCALING_TYPEscalingType field namestatic StringCOLUMN_TABLE_NAMEtableName columnstatic StringCOLUMN_ZOOM_INzoomIn field namestatic StringCOLUMN_ZOOM_OUTzoomOut field namestatic StringTABLE_NAMETable name
-
Constructor Summary
Constructors Constructor Description TileScaling()Default ConstructorTileScaling(String tableName, TileScalingType scalingType, Long zoomIn, Long zoomOut)ConstructorTileScaling(TileScaling tileScaling)Copy ConstructorTileScaling(TileScalingType scalingType, Long zoomIn, Long zoomOut)ConstructorTileScaling(TileMatrixSet tileMatrixSet, TileScalingType scalingType, Long zoomIn, Long zoomOut)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TileScalingTypegetScalingType()Get the tile scaling typeStringgetScalingTypeString()Get the tile scaling type string valueStringgetTableName()Get the table name of the tile tableLonggetZoomIn()Get the max levels to zoom inLonggetZoomOut()Get the max levels to zoom outbooleanisZoomIn()Is zoom in tile search enabledbooleanisZoomOut()Is zoom out tile search enabledvoidsetScalingType(TileScalingType scalingType)Set the tile scaling typevoidsetScalingTypeString(String scalingType)Set the tile scaling type string valuevoidsetTableName(String tableName)Set the table name of the tile tablevoidsetTileMatrixSet(TileMatrixSet tileMatrixSet)Set the tile matrix setvoidsetZoomIn(Long zoomIn)Set the max levels to zoom invoidsetZoomOut(Long zoomOut)Set the max levels to zoom out
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
Table name- See Also:
- Constant Field Values
-
COLUMN_TABLE_NAME
public static final String COLUMN_TABLE_NAME
tableName column- See Also:
- Constant Field Values
-
COLUMN_SCALING_TYPE
public static final String COLUMN_SCALING_TYPE
scalingType field name- See Also:
- Constant Field Values
-
COLUMN_ZOOM_IN
public static final String COLUMN_ZOOM_IN
zoomIn field name- See Also:
- Constant Field Values
-
COLUMN_ZOOM_OUT
public static final String COLUMN_ZOOM_OUT
zoomOut field name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TileScaling
public TileScaling()
Default Constructor
-
TileScaling
public TileScaling(TileMatrixSet tileMatrixSet, TileScalingType scalingType, Long zoomIn, Long zoomOut)
Constructor- Parameters:
tileMatrixSet- tile matrix setscalingType- scaling typezoomIn- max zoom in levelszoomOut- max zoom out levels
-
TileScaling
public TileScaling(String tableName, TileScalingType scalingType, Long zoomIn, Long zoomOut)
Constructor- Parameters:
tableName- table namescalingType- scaling typezoomIn- max zoom in levelszoomOut- max zoom out levels
-
TileScaling
public TileScaling(TileScalingType scalingType, Long zoomIn, Long zoomOut)
Constructor- Parameters:
scalingType- scaling typezoomIn- max zoom in levelszoomOut- max zoom out levels
-
TileScaling
public TileScaling(TileScaling tileScaling)
Copy Constructor- Parameters:
tileScaling- tile scaling to copy
-
-
Method Detail
-
setTileMatrixSet
public void setTileMatrixSet(TileMatrixSet tileMatrixSet)
Set the tile matrix set- Parameters:
tileMatrixSet- tile matrix set
-
getTableName
public String getTableName()
Get the table name of the tile table- Returns:
- table name of the tile table
-
setTableName
public void setTableName(String tableName)
Set the table name of the tile table- Parameters:
tableName- table name of the tile table
-
getScalingType
public TileScalingType getScalingType()
Get the tile scaling type- Returns:
- tile scaling type
-
setScalingType
public void setScalingType(TileScalingType scalingType)
Set the tile scaling type- Parameters:
scalingType- tile scaling type
-
getScalingTypeString
public String getScalingTypeString()
Get the tile scaling type string value- Returns:
- tile scaling type string
-
setScalingTypeString
public void setScalingTypeString(String scalingType)
Set the tile scaling type string value- Parameters:
scalingType- tile scaling type string
-
getZoomIn
public Long getZoomIn()
Get the max levels to zoom in- Returns:
- zoom in levels
-
setZoomIn
public void setZoomIn(Long zoomIn)
Set the max levels to zoom in- Parameters:
zoomIn- zoom in levels
-
getZoomOut
public Long getZoomOut()
Get the max levels to zoom out- Returns:
- zoom out levels
-
setZoomOut
public void setZoomOut(Long zoomOut)
Set the max levels to zoom out- Parameters:
zoomOut- zoom out level
-
isZoomIn
public boolean isZoomIn()
Is zoom in tile search enabled- Returns:
- true if zoom in for tiles is allowed
-
isZoomOut
public boolean isZoomOut()
Is zoom out tile search enabled- Returns:
- true if zoom out for tiles is allowed
-
-