Package mil.nga.geopackage.srs
Class SpatialReferenceSystem
- java.lang.Object
-
- mil.nga.geopackage.srs.SpatialReferenceSystem
-
public class SpatialReferenceSystem extends Object
Spatial Reference System object. The coordinate reference system definitions it contains are referenced by the GeoPackageContents
andGeometryColumns
objects to relate the vector and tile data in user tables to locations on the earth.- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_DEFINITION
definition field namestatic String
COLUMN_DESCRIPTION
description field namestatic String
COLUMN_ID
id field name, srsIdstatic String
COLUMN_ORGANIZATION
organization field namestatic String
COLUMN_ORGANIZATION_COORDSYS_ID
organizationCoordsysId field namestatic String
COLUMN_SRS_ID
srsId field namestatic String
COLUMN_SRS_NAME
srsName field namestatic String
TABLE_NAME
Table name
-
Constructor Summary
Constructors Constructor Description SpatialReferenceSystem()
Default ConstructorSpatialReferenceSystem(SpatialReferenceSystem srs)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForeignCollection<Contents>
getContents()
Get the contentsString
getDefinition()
Get the definitionString
getDefinition_12_063()
Get the 12_063 WKT definitionString
getDescription()
Get the descriptionDouble
getEpoch()
Get the coordinate epochForeignCollection<GeometryColumns>
getGeometryColumns()
Get the geometry columnslong
getId()
Get the idString
getOrganization()
Get the organizationlong
getOrganizationCoordsysId()
Get the organization coordsys idProjection
getProjection()
Get the projection for the Spatial Reference SystemString
getProjectionDefinition()
Get the projection definitionlong
getSrsId()
Get the srs idString
getSrsName()
Get the srs nameForeignCollection<TileMatrixSet>
getTileMatrixSet()
Get the tile matrix setGeometryTransform
getTransformation(Projection projection)
Get the projection transform from the provided projection to the Spatial Reference System projectionvoid
setDefinition(String definition)
Set the definitionvoid
setDefinition_12_063(String definition_12_063)
Set the 12_063 WKT definitionvoid
setDescription(String description)
Set the descriptionvoid
setEpoch(Double epoch)
Set the coordinate epochvoid
setId(long id)
Set the idvoid
setOrganization(String organization)
Set the organizationvoid
setOrganizationCoordsysId(long organizationCoordsysId)
Set the organization coordsys idvoid
setSrsId(long srsId)
Set the srs idvoid
setSrsName(String srsName)
Set the srs name
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
Table name- See Also:
- Constant Field Values
-
COLUMN_SRS_NAME
public static final String COLUMN_SRS_NAME
srsName 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
-
COLUMN_ID
public static final String COLUMN_ID
id field name, srsId- See Also:
- Constant Field Values
-
COLUMN_ORGANIZATION
public static final String COLUMN_ORGANIZATION
organization field name- See Also:
- Constant Field Values
-
COLUMN_ORGANIZATION_COORDSYS_ID
public static final String COLUMN_ORGANIZATION_COORDSYS_ID
organizationCoordsysId field name- See Also:
- Constant Field Values
-
COLUMN_DEFINITION
public static final String COLUMN_DEFINITION
definition field name- See Also:
- Constant Field Values
-
COLUMN_DESCRIPTION
public static final String COLUMN_DESCRIPTION
description field name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpatialReferenceSystem
public SpatialReferenceSystem()
Default Constructor
-
SpatialReferenceSystem
public SpatialReferenceSystem(SpatialReferenceSystem srs)
Copy Constructor- Parameters:
srs
- srs to copy- Since:
- 1.3.0
-
-
Method Detail
-
getId
public long getId()
Get the id- Returns:
- id
-
setId
public void setId(long id)
Set the id- Parameters:
id
- id
-
getSrsName
public String getSrsName()
Get the srs name- Returns:
- srs name
-
setSrsName
public void setSrsName(String srsName)
Set the srs name- Parameters:
srsName
- srs name
-
getSrsId
public long getSrsId()
Get the srs id- Returns:
- srs id
-
setSrsId
public void setSrsId(long srsId)
Set the srs id- Parameters:
srsId
- srs id
-
getOrganization
public String getOrganization()
Get the organization- Returns:
- organization
-
setOrganization
public void setOrganization(String organization)
Set the organization- Parameters:
organization
- organization
-
getOrganizationCoordsysId
public long getOrganizationCoordsysId()
Get the organization coordsys id- Returns:
- organization coordsys id
-
setOrganizationCoordsysId
public void setOrganizationCoordsysId(long organizationCoordsysId)
Set the organization coordsys id- Parameters:
organizationCoordsysId
- organization coordsys id
-
getDefinition
public String getDefinition()
Get the definition- Returns:
- definition
-
setDefinition
public void setDefinition(String definition)
Set the definition- Parameters:
definition
- definition
-
getDescription
public String getDescription()
Get the description- Returns:
- description
-
setDescription
public void setDescription(String description)
Set the description- Parameters:
description
- description
-
getDefinition_12_063
public String getDefinition_12_063()
Get the 12_063 WKT definition- Returns:
- 12_06 3WKT definition
- Since:
- 1.2.1
-
setDefinition_12_063
public void setDefinition_12_063(String definition_12_063)
Set the 12_063 WKT definition- Parameters:
definition_12_063
- 12_063 WKT definition- Since:
- 1.2.1
-
getEpoch
public Double getEpoch()
Get the coordinate epoch- Returns:
- coordinate epoch
- Since:
- 6.6.0
-
setEpoch
public void setEpoch(Double epoch)
Set the coordinate epoch- Parameters:
epoch
- coordinate epoch- Since:
- 6.6.0
-
getContents
public ForeignCollection<Contents> getContents()
Get the contents- Returns:
- contents
-
getGeometryColumns
public ForeignCollection<GeometryColumns> getGeometryColumns()
Get the geometry columns- Returns:
- geometry columns
-
getTileMatrixSet
public ForeignCollection<TileMatrixSet> getTileMatrixSet()
Get the tile matrix set- Returns:
- tile matrix set
-
getProjection
public Projection getProjection()
Get the projection for the Spatial Reference System- Returns:
- projection
- Since:
- 3.0.0
-
getProjectionDefinition
public String getProjectionDefinition()
Get the projection definition- Returns:
- definition
- Since:
- 6.2.0
-
getTransformation
public GeometryTransform getTransformation(Projection projection)
Get the projection transform from the provided projection to the Spatial Reference System projection- Parameters:
projection
- from projection- Returns:
- projection transform
- Since:
- 3.0.0
-
-