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 String
COLUMN_SCALING_TYPE
scalingType field namestatic String
COLUMN_TABLE_NAME
tableName columnstatic String
COLUMN_ZOOM_IN
zoomIn field namestatic String
COLUMN_ZOOM_OUT
zoomOut field namestatic String
TABLE_NAME
Table 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 TileScalingType
getScalingType()
Get the tile scaling typeString
getScalingTypeString()
Get the tile scaling type string valueString
getTableName()
Get the table name of the tile tableLong
getZoomIn()
Get the max levels to zoom inLong
getZoomOut()
Get the max levels to zoom outboolean
isZoomIn()
Is zoom in tile search enabledboolean
isZoomOut()
Is zoom out tile search enabledvoid
setScalingType(TileScalingType scalingType)
Set the tile scaling typevoid
setScalingTypeString(String scalingType)
Set the tile scaling type string valuevoid
setTableName(String tableName)
Set the table name of the tile tablevoid
setTileMatrixSet(TileMatrixSet tileMatrixSet)
Set the tile matrix setvoid
setZoomIn(Long zoomIn)
Set the max levels to zoom invoid
setZoomOut(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
-
-