Class GeoPackageFileName


  • public class GeoPackageFileName
    extends Object
    DGIWG (Defence Geospatial Information Working Group) GeoPackage File Name
    Since:
    6.6.0
    Author:
    osbornb
    • Constructor Detail

      • GeoPackageFileName

        public GeoPackageFileName()
        Constructor
      • GeoPackageFileName

        public GeoPackageFileName​(File file)
        Constructor
        Parameters:
        file - GeoPackage file
      • GeoPackageFileName

        public GeoPackageFileName​(String name)
        Constructor
        Parameters:
        name - GeoPackage file name
    • Method Detail

      • getProducer

        public String getProducer()
        Get the GeoPackage producer
        Returns:
        producer
      • setProducer

        public void setProducer​(String producer)
        Set the GeoPackage producer
        Parameters:
        producer - producer
      • getDataProduct

        public String getDataProduct()
        Get the data product
        Returns:
        data product
      • setDataProduct

        public void setDataProduct​(String dataProduct)
        Set the data product
        Parameters:
        dataProduct - data product
      • getGeographicCoverageArea

        public String getGeographicCoverageArea()
        Get the geographic coverage area
        Returns:
        geographic coverage area
      • setGeographicCoverageArea

        public void setGeographicCoverageArea​(String geographicCoverageArea)
        Set the geographic coverage area
        Parameters:
        geographicCoverageArea - geographic coverage area
      • getZoomLevels

        public String getZoomLevels()
        Get the zoom levels
        Returns:
        zoom levels
      • setZoomLevels

        public void setZoomLevels​(String zoomLevels)
        Set the zoom levels
        Parameters:
        zoomLevels - zoom levels
      • getZoomLevel1

        public Integer getZoomLevel1()
        Get the zoom level part 1, max zoom or scale map units
        Returns:
        zoom level part 1
      • hasZoomLevel1

        public boolean hasZoomLevel1()
        Has a zoom level part 1, max zoom or scale map units
        Returns:
        true if has zoom level part 1
      • getZoomLevel2

        public Integer getZoomLevel2()
        Get the zoom level part 2, max zoom or scale surface units
        Returns:
        zoom level part 2
      • hasZoomLevel2

        public boolean hasZoomLevel2()
        Has a zoom level part 2, max zoom or scale surface units
        Returns:
        true if has zoom level part 2
      • setZoomLevelRange

        public void setZoomLevelRange​(int minZoom,
                                      int maxZoom)
        Set the zoom level range
        Parameters:
        minZoom - min zoom level
        maxZoom - max zoom level
      • setZoomLevelScale

        public void setZoomLevelScale​(int mapUnits,
                                      int surfaceUnits)
        Set the zoom level map scale
        Parameters:
        mapUnits - scale map units
        surfaceUnits - scale surface units
      • getVersion

        public String getVersion()
        Get the version
        Returns:
        version
      • setVersion

        public void setVersion​(String version)
        Set the version
        Parameters:
        version - version
      • getMajorVersion

        public Integer getMajorVersion()
        Get the major version
        Returns:
        major version
      • hasMajorVersion

        public boolean hasMajorVersion()
        Has a major version
        Returns:
        true if has major version
      • getMinorVersion

        public Integer getMinorVersion()
        Get the minor version
        Returns:
        minor version
      • hasMinorVersion

        public boolean hasMinorVersion()
        Has a minor version
        Returns:
        true if has minor version
      • setVersion

        public void setVersion​(int majorVersion,
                               int minorVersion)
        Set the version
        Parameters:
        majorVersion - major version
        minorVersion - minor version
      • getCreationDateText

        public String getCreationDateText()
        Get the creation date text
        Returns:
        creation date text
      • setCreationDateText

        public void setCreationDateText​(String creationDateText)
        Set the creation date text
        Parameters:
        creationDateText - creation date text
      • getCreationDate

        public Date getCreationDate()
        Get the creation date
        Returns:
        creation date
      • setCreationDate

        public void setCreationDate​(Date creationDate)
        Set the creation date
        Parameters:
        creationDate - creation date
      • getAdditional

        public List<String> getAdditional()
        Get additional elements
        Returns:
        additional elements
      • hasAdditional

        public boolean hasAdditional()
        Has additional elements
        Returns:
        true if has additional elements
      • setAdditional

        public void setAdditional​(List<String> additional)
        Set additional elements
        Parameters:
        additional - additional elements
      • addAdditional

        public void addAdditional​(String additional)
        Add an additional element
        Parameters:
        additional - additional element
      • isInformative

        public boolean isInformative()
        Determine if a complete informative file name
        Returns:
        true if informative
      • getName

        public String getName()
        Get the file name
        Returns:
        file name
      • getNameWithExtension

        public String getNameWithExtension()
        Get the file name with GeoPackage extension
        Returns:
        file name with extension
      • getFile

        public File getFile()
        Get a local file from the name with GeoPackage extension
        Returns:
        file
      • delimitersToSpaces

        public String delimitersToSpaces​(String value)
        Replace word delimiters with spaces
        Parameters:
        value - delimited value
        Returns:
        space replaced value
      • info

        public String info()
        Multiline file name information string with metadata headers
        Returns:
        information string
        Since:
        6.6.3
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object