Package mil.nga.geopackage.contents
Class Contents
- java.lang.Object
-
- mil.nga.geopackage.contents.Contents
-
public class Contents extends Object
Contents object. Provides identifying and descriptive information that an application can display to a user in a menu of geospatial data that is available for access and/or update.- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_DATA_TYPE
dataType field namestatic String
COLUMN_DESCRIPTION
description field namestatic String
COLUMN_ID
id field name, tableNamestatic String
COLUMN_IDENTIFIER
identifier field namestatic String
COLUMN_LAST_CHANGE
lastChange field namestatic String
COLUMN_MAX_X
maxX field namestatic String
COLUMN_MAX_Y
maxY field namestatic String
COLUMN_MIN_X
minX field namestatic String
COLUMN_MIN_Y
minY field namestatic String
COLUMN_SRS_ID
srsId field namestatic String
COLUMN_TABLE_NAME
tableName field namestatic String
TABLE_NAME
Table name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBox
getBoundingBox()
Get a bounding boxBoundingBox
getBoundingBox(Projection projection)
Get a bounding box in the provided projectionContentsDataType
getDataType()
Get the data typeString
getDataTypeName()
Get the data type string valueString
getDescription()
Get the descriptionGeometryColumns
getGeometryColumns()
Get the Geometry Columns, should only return one or no valueString
getId()
Get the idString
getIdentifier()
Get the identifierDate
getLastChange()
Get the last changeDouble
getMaxX()
Get the max xDouble
getMaxY()
Get the max yDouble
getMinX()
Get the min xDouble
getMinY()
Get the min yProjection
getProjection()
Get the projectionSpatialReferenceSystem
getSrs()
Get the SRSLong
getSrsId()
Get the srs idString
getTableName()
Get the table nameForeignCollection<TileMatrix>
getTileMatrix()
Get the Tile Matrix collectionTileMatrixSet
getTileMatrixSet()
Get the Tile Matrix Set, should only return one or no valueboolean
isAttributesType()
Determine if the contents data type is attributesboolean
isAttributesTypeOrUnknown()
Determine if the contents data type is attributes or unknownboolean
isFeaturesType()
Determine if the contents data type is featuresboolean
isFeaturesTypeOrUnknown()
Determine if the contents data type is features or unknownboolean
isTilesType()
Determine if the contents data type is tilesboolean
isTilesTypeOrUnknown()
Determine if the contents data type is tiles or unknownvoid
setBoundingBox(BoundingBox boundingBox)
Set a bounding boxvoid
setDataType(ContentsDataType dataType)
Set the data typevoid
setDataTypeName(String name)
Set the data type namevoid
setDataTypeName(String name, ContentsDataType dataType)
Set the data type name and register the core data typevoid
setDescription(String description)
Set the descriptionvoid
setId(String id)
Set the idvoid
setIdentifier(String identifier)
Set the identifiervoid
setLastChange(Date lastChange)
Set the last changevoid
setMaxX(Double maxX)
Set the max xvoid
setMaxY(Double maxY)
Set the max yvoid
setMinX(Double minX)
Set the min xvoid
setMinY(Double minY)
Set the min yvoid
setSrs(SpatialReferenceSystem srs)
Set the srsvoid
setTableName(String tableName)
Set the table name
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
Table name- See Also:
- Constant Field Values
-
COLUMN_TABLE_NAME
public static final String COLUMN_TABLE_NAME
tableName field name- See Also:
- Constant Field Values
-
COLUMN_ID
public static final String COLUMN_ID
id field name, tableName- See Also:
- Constant Field Values
-
COLUMN_DATA_TYPE
public static final String COLUMN_DATA_TYPE
dataType field name- See Also:
- Constant Field Values
-
COLUMN_IDENTIFIER
public static final String COLUMN_IDENTIFIER
identifier field name- See Also:
- Constant Field Values
-
COLUMN_DESCRIPTION
public static final String COLUMN_DESCRIPTION
description field name- See Also:
- Constant Field Values
-
COLUMN_LAST_CHANGE
public static final String COLUMN_LAST_CHANGE
lastChange field name- See Also:
- Constant Field Values
-
COLUMN_MIN_X
public static final String COLUMN_MIN_X
minX field name- See Also:
- Constant Field Values
-
COLUMN_MIN_Y
public static final String COLUMN_MIN_Y
minY field name- See Also:
- Constant Field Values
-
COLUMN_MAX_X
public static final String COLUMN_MAX_X
maxX field name- See Also:
- Constant Field Values
-
COLUMN_MAX_Y
public static final String COLUMN_MAX_Y
maxY field name- See Also:
- Constant Field Values
-
COLUMN_SRS_ID
public static final String COLUMN_SRS_ID
srsId field name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Contents
public Contents()
Default Constructor
-
Contents
public Contents(Contents contents)
Copy Constructor- Parameters:
contents
- contents to copy- Since:
- 1.3.0
-
-
Method Detail
-
getId
public String getId()
Get the id- Returns:
- id
-
setId
public void setId(String id)
Set the id- Parameters:
id
- id
-
getTableName
public String getTableName()
Get the table name- Returns:
- table name
-
setTableName
public void setTableName(String tableName)
Set the table name- Parameters:
tableName
- table name
-
getDataType
public ContentsDataType getDataType()
Get the data type- Returns:
- data type
-
setDataType
public void setDataType(ContentsDataType dataType)
Set the data type- Parameters:
dataType
- data type
-
getDataTypeName
public String getDataTypeName()
Get the data type string value- Returns:
- data type
- Since:
- 4.0.0
-
setDataTypeName
public void setDataTypeName(String name)
Set the data type name- Parameters:
name
- data type name- Since:
- 4.0.0
-
setDataTypeName
public void setDataTypeName(String name, ContentsDataType dataType)
Set the data type name and register the core data type- Parameters:
name
- data type namedataType
- core data type
-
isFeaturesType
public boolean isFeaturesType()
Determine if the contents data type is features- Returns:
- true if features type
- Since:
- 4.0.0
-
isFeaturesTypeOrUnknown
public boolean isFeaturesTypeOrUnknown()
Determine if the contents data type is features or unknown- Returns:
- true if features type or unknown
- Since:
- 4.0.0
-
isTilesType
public boolean isTilesType()
Determine if the contents data type is tiles- Returns:
- true if tiles type
- Since:
- 4.0.0
-
isTilesTypeOrUnknown
public boolean isTilesTypeOrUnknown()
Determine if the contents data type is tiles or unknown- Returns:
- true if tiles type or unknown
- Since:
- 4.0.0
-
isAttributesType
public boolean isAttributesType()
Determine if the contents data type is attributes- Returns:
- true if attributes type
- Since:
- 4.0.0
-
isAttributesTypeOrUnknown
public boolean isAttributesTypeOrUnknown()
Determine if the contents data type is attributes or unknown- Returns:
- true if attributes type or unknown
- Since:
- 4.0.0
-
getIdentifier
public String getIdentifier()
Get the identifier- Returns:
- identifier
-
setIdentifier
public void setIdentifier(String identifier)
Set the identifier- Parameters:
identifier
- identifier
-
getDescription
public String getDescription()
Get the description- Returns:
- description
-
setDescription
public void setDescription(String description)
Set the description- Parameters:
description
- description
-
getLastChange
public Date getLastChange()
Get the last change- Returns:
- last change
-
setLastChange
public void setLastChange(Date lastChange)
Set the last change- Parameters:
lastChange
- last change
-
getMinX
public Double getMinX()
Get the min x- Returns:
- min x
-
setMinX
public void setMinX(Double minX)
Set the min x- Parameters:
minX
- min x
-
getMinY
public Double getMinY()
Get the min y- Returns:
- min y
-
setMinY
public void setMinY(Double minY)
Set the min y- Parameters:
minY
- min y
-
getMaxX
public Double getMaxX()
Get the max x- Returns:
- max x
-
setMaxX
public void setMaxX(Double maxX)
Set the max x- Parameters:
maxX
- max x
-
getMaxY
public Double getMaxY()
Get the max y- Returns:
- max y
-
setMaxY
public void setMaxY(Double maxY)
Set the max y- Parameters:
maxY
- max y
-
getSrs
public SpatialReferenceSystem getSrs()
Get the SRS- Returns:
- srs
-
setSrs
public void setSrs(SpatialReferenceSystem srs)
Set the srs- Parameters:
srs
- srs
-
getSrsId
public Long getSrsId()
Get the srs id- Returns:
- srs id
-
getGeometryColumns
public GeometryColumns getGeometryColumns()
Get the Geometry Columns, should only return one or no value- Returns:
- geometry columns
-
getTileMatrixSet
public TileMatrixSet getTileMatrixSet()
Get the Tile Matrix Set, should only return one or no value- Returns:
- tile matrix set
-
getTileMatrix
public ForeignCollection<TileMatrix> getTileMatrix()
Get the Tile Matrix collection- Returns:
- tile matrices
-
getBoundingBox
public BoundingBox getBoundingBox()
Get a bounding box- Returns:
- bounding box
-
getBoundingBox
public BoundingBox getBoundingBox(Projection projection)
Get a bounding box in the provided projection- Parameters:
projection
- desired projection- Returns:
- bounding box
- Since:
- 3.1.0
-
setBoundingBox
public void setBoundingBox(BoundingBox boundingBox)
Set a bounding box- Parameters:
boundingBox
- bounding box
-
getProjection
public Projection getProjection()
Get the projection- Returns:
- projection
- Since:
- 3.1.0
-
-