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 String
DATE_FORMAT
Date formatstatic String
DELIMITER_ELEMENTS
Delimiter between elementsstatic String
DELIMITER_SCALE
Delimiter between zoom scalestatic String
DELIMITER_WORDS
Delimiter between wordsstatic String
VERSION_PREFIX
Version 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 void
addAdditional(String additional)
Add an additional elementString
delimitersToSpaces(String value)
Replace word delimiters with spacesboolean
equals(Object obj)
List<String>
getAdditional()
Get additional elementsDate
getCreationDate()
Get the creation dateString
getCreationDateText()
Get the creation date textString
getDataProduct()
Get the data productFile
getFile()
Get a local file from the name with GeoPackage extensionString
getGeographicCoverageArea()
Get the geographic coverage areaInteger
getMajorVersion()
Get the major versionInteger
getMinorVersion()
Get the minor versionString
getName()
Get the file nameString
getNameWithExtension()
Get the file name with GeoPackage extensionString
getProducer()
Get the GeoPackage producerString
getVersion()
Get the versionInteger
getZoomLevel1()
Get the zoom level part 1, max zoom or scale map unitsInteger
getZoomLevel2()
Get the zoom level part 2, max zoom or scale surface unitsString
getZoomLevels()
Get the zoom levelsboolean
hasAdditional()
Has additional elementsint
hashCode()
boolean
hasMajorVersion()
Has a major versionboolean
hasMinorVersion()
Has a minor versionboolean
hasZoomLevel1()
Has a zoom level part 1, max zoom or scale map unitsboolean
hasZoomLevel2()
Has a zoom level part 2, max zoom or scale surface unitsString
info()
Multiline file name information string with metadata headersboolean
isInformative()
Determine if a complete informative file namevoid
setAdditional(List<String> additional)
Set additional elementsvoid
setCreationDate(Date creationDate)
Set the creation datevoid
setCreationDateText(String creationDateText)
Set the creation date textvoid
setDataProduct(String dataProduct)
Set the data productvoid
setGeographicCoverageArea(String geographicCoverageArea)
Set the geographic coverage areavoid
setProducer(String producer)
Set the GeoPackage producervoid
setVersion(int majorVersion, int minorVersion)
Set the versionvoid
setVersion(String version)
Set the versionvoid
setZoomLevelRange(int minZoom, int maxZoom)
Set the zoom level rangevoid
setZoomLevels(String zoomLevels)
Set the zoom levelsvoid
setZoomLevelScale(int mapUnits, int surfaceUnits)
Set the zoom level map scaleString
toString()
-
-
-
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
-
-