Package mil.nga.geopackage.dgiwg
Class GeoPackageFileName
- java.lang.Object
-
- mil.nga.geopackage.dgiwg.GeoPackageFileName
-
public class GeoPackageFileName extends Object
DGIWG (Defence Geospatial Information Working Group) GeoPackage File Name- Since:
- 6.6.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATE_FORMATDate formatstatic StringDELIMITER_ELEMENTSDelimiter between elementsstatic StringDELIMITER_SCALEDelimiter between zoom scalestatic StringDELIMITER_WORDSDelimiter between wordsstatic StringVERSION_PREFIXVersion prefix
-
Constructor Summary
Constructors Constructor Description GeoPackageFileName()ConstructorGeoPackageFileName(File file)ConstructorGeoPackageFileName(String name)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditional(String additional)Add an additional elementStringdelimitersToSpaces(String value)Replace word delimiters with spacesbooleanequals(Object obj)List<String>getAdditional()Get additional elementsDategetCreationDate()Get the creation dateStringgetCreationDateText()Get the creation date textStringgetDataProduct()Get the data productFilegetFile()Get a local file from the name with GeoPackage extensionStringgetGeographicCoverageArea()Get the geographic coverage areaIntegergetMajorVersion()Get the major versionIntegergetMinorVersion()Get the minor versionStringgetName()Get the file nameStringgetNameWithExtension()Get the file name with GeoPackage extensionStringgetProducer()Get the GeoPackage producerStringgetVersion()Get the versionIntegergetZoomLevel1()Get the zoom level part 1, max zoom or scale map unitsIntegergetZoomLevel2()Get the zoom level part 2, max zoom or scale surface unitsStringgetZoomLevels()Get the zoom levelsbooleanhasAdditional()Has additional elementsinthashCode()booleanhasMajorVersion()Has a major versionbooleanhasMinorVersion()Has a minor versionbooleanhasZoomLevel1()Has a zoom level part 1, max zoom or scale map unitsbooleanhasZoomLevel2()Has a zoom level part 2, max zoom or scale surface unitsStringinfo()Multiline file name information string with metadata headersbooleanisInformative()Determine if a complete informative file namevoidsetAdditional(List<String> additional)Set additional elementsvoidsetCreationDate(Date creationDate)Set the creation datevoidsetCreationDateText(String creationDateText)Set the creation date textvoidsetDataProduct(String dataProduct)Set the data productvoidsetGeographicCoverageArea(String geographicCoverageArea)Set the geographic coverage areavoidsetProducer(String producer)Set the GeoPackage producervoidsetVersion(int majorVersion, int minorVersion)Set the versionvoidsetVersion(String version)Set the versionvoidsetZoomLevelRange(int minZoom, int maxZoom)Set the zoom level rangevoidsetZoomLevels(String zoomLevels)Set the zoom levelsvoidsetZoomLevelScale(int mapUnits, int surfaceUnits)Set the zoom level map scaleStringtoString()
-
-
-
Field Detail
-
DELIMITER_ELEMENTS
public static final String DELIMITER_ELEMENTS
Delimiter between elements- See Also:
- Constant Field Values
-
DELIMITER_WORDS
public static final String DELIMITER_WORDS
Delimiter between words- See Also:
- Constant Field Values
-
DELIMITER_SCALE
public static final String DELIMITER_SCALE
Delimiter between zoom scale- See Also:
- Constant Field Values
-
VERSION_PREFIX
public static final String VERSION_PREFIX
Version prefix- See Also:
- Constant Field Values
-
DATE_FORMAT
public static final String DATE_FORMAT
Date format- See Also:
- Constant Field Values
-
-
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 levelmaxZoom- max zoom level
-
setZoomLevelScale
public void setZoomLevelScale(int mapUnits, int surfaceUnits)Set the zoom level map scale- Parameters:
mapUnits- scale map unitssurfaceUnits- 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 versionminorVersion- 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
-
-