Package mil.nga.geopackage.io
Class TileProperties
- java.lang.Object
-
- mil.nga.geopackage.io.TileProperties
-
public class TileProperties extends Object
Tile properties for GeoPackage formatted tile property files- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
GEOPACKAGE_PROPERTIES_EPSG
SRS ID propertystatic String
GEOPACKAGE_PROPERTIES_FILE
GeoPackage tiles properties filestatic String
GEOPACKAGE_PROPERTIES_MATRIX_HEIGHT
Matrix Height propertystatic String
GEOPACKAGE_PROPERTIES_MATRIX_WIDTH
Matrix Width propertystatic String
GEOPACKAGE_PROPERTIES_MAX_X
MAX X propertystatic String
GEOPACKAGE_PROPERTIES_MAX_Y
MAX Y propertystatic String
GEOPACKAGE_PROPERTIES_MIN_X
MIN X propertystatic String
GEOPACKAGE_PROPERTIES_MIN_Y
MIN Y propertystatic String
GEOPACKAGE_PROPERTIES_ZOOM_LEVEL
Zoom Level property
-
Constructor Summary
Constructors Constructor Description TileProperties(File directory)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getDoubleProperty(String property, boolean required)
Get the Double propertyInteger
getIntegerProperty(String property, boolean required)
Get the Integer propertystatic String
getMatrixHeightProperty(long zoom)
Get the matrix height property for the zoom levelstatic String
getMatrixHeightProperty(String zoom)
Get the matrix height property for the zoom levelstatic String
getMatrixWidthProperty(long zoom)
Get the matrix width property for the zoom levelstatic String
getMatrixWidthProperty(String zoom)
Get the matrix width property for the zoom levelString
getProperty(String property, boolean required)
Get the String propertyvoid
load()
Load the propertiesvoid
writeFile(TileDao tileDao)
Write the properties file using the tile dao
-
-
-
Field Detail
-
GEOPACKAGE_PROPERTIES_FILE
public static final String GEOPACKAGE_PROPERTIES_FILE
GeoPackage tiles properties file- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_EPSG
public static final String GEOPACKAGE_PROPERTIES_EPSG
SRS ID property- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_MIN_X
public static final String GEOPACKAGE_PROPERTIES_MIN_X
MIN X property- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_MAX_X
public static final String GEOPACKAGE_PROPERTIES_MAX_X
MAX X property- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_MIN_Y
public static final String GEOPACKAGE_PROPERTIES_MIN_Y
MIN Y property- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_MAX_Y
public static final String GEOPACKAGE_PROPERTIES_MAX_Y
MAX Y property- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_ZOOM_LEVEL
public static final String GEOPACKAGE_PROPERTIES_ZOOM_LEVEL
Zoom Level property- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_MATRIX_WIDTH
public static final String GEOPACKAGE_PROPERTIES_MATRIX_WIDTH
Matrix Width property- See Also:
- Constant Field Values
-
GEOPACKAGE_PROPERTIES_MATRIX_HEIGHT
public static final String GEOPACKAGE_PROPERTIES_MATRIX_HEIGHT
Matrix Height property- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TileProperties
public TileProperties(File directory)
Constructor- Parameters:
directory
- file directory
-
-
Method Detail
-
load
public void load()
Load the properties
-
getIntegerProperty
public Integer getIntegerProperty(String property, boolean required)
Get the Integer property- Parameters:
property
- propertyrequired
- required flag- Returns:
- integer property
-
getDoubleProperty
public Double getDoubleProperty(String property, boolean required)
Get the Double property- Parameters:
property
- propertyrequired
- required flag- Returns:
- double property
-
getProperty
public String getProperty(String property, boolean required)
Get the String property- Parameters:
property
- propertyrequired
- required flag- Returns:
- string property
-
writeFile
public void writeFile(TileDao tileDao)
Write the properties file using the tile dao- Parameters:
tileDao
- tile dao
-
getMatrixWidthProperty
public static String getMatrixWidthProperty(long zoom)
Get the matrix width property for the zoom level- Parameters:
zoom
- zoom- Returns:
- matrix width property
-
getMatrixWidthProperty
public static String getMatrixWidthProperty(String zoom)
Get the matrix width property for the zoom level- Parameters:
zoom
- zoom- Returns:
- matrix width property
-
getMatrixHeightProperty
public static String getMatrixHeightProperty(long zoom)
Get the matrix height property for the zoom level- Parameters:
zoom
- zoom- Returns:
- matrix height property
-
-