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 StringGEOPACKAGE_PROPERTIES_EPSGSRS ID propertystatic StringGEOPACKAGE_PROPERTIES_FILEGeoPackage tiles properties filestatic StringGEOPACKAGE_PROPERTIES_MATRIX_HEIGHTMatrix Height propertystatic StringGEOPACKAGE_PROPERTIES_MATRIX_WIDTHMatrix Width propertystatic StringGEOPACKAGE_PROPERTIES_MAX_XMAX X propertystatic StringGEOPACKAGE_PROPERTIES_MAX_YMAX Y propertystatic StringGEOPACKAGE_PROPERTIES_MIN_XMIN X propertystatic StringGEOPACKAGE_PROPERTIES_MIN_YMIN Y propertystatic StringGEOPACKAGE_PROPERTIES_ZOOM_LEVELZoom 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 DoublegetDoubleProperty(String property, boolean required)Get the Double propertyIntegergetIntegerProperty(String property, boolean required)Get the Integer propertystatic StringgetMatrixHeightProperty(long zoom)Get the matrix height property for the zoom levelstatic StringgetMatrixHeightProperty(String zoom)Get the matrix height property for the zoom levelstatic StringgetMatrixWidthProperty(long zoom)Get the matrix width property for the zoom levelstatic StringgetMatrixWidthProperty(String zoom)Get the matrix width property for the zoom levelStringgetProperty(String property, boolean required)Get the String propertyvoidload()Load the propertiesvoidwriteFile(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
-
-