Class TileProperties


  • public class TileProperties
    extends Object
    Tile properties for GeoPackage formatted tile property files
    Author:
    osbornb
    • Field Detail

      • GEOPACKAGE_PROPERTIES_FILE

        public static final String GEOPACKAGE_PROPERTIES_FILE
        GeoPackage tiles properties file
        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 - property
        required - required flag
        Returns:
        integer property
      • getDoubleProperty

        public Double getDoubleProperty​(String property,
                                        boolean required)
        Get the Double property
        Parameters:
        property - property
        required - required flag
        Returns:
        double property
      • getProperty

        public String getProperty​(String property,
                                  boolean required)
        Get the String property
        Parameters:
        property - property
        required - 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
      • getMatrixHeightProperty

        public static String getMatrixHeightProperty​(String zoom)
        Get the matrix height property for the zoom level
        Parameters:
        zoom - zoom
        Returns:
        matrix height property