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 GeoPackageContentsandGeometryColumnsobjects 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 StringCOLUMN_DEFINITIONdefinition field namestatic StringCOLUMN_DESCRIPTIONdescription field namestatic StringCOLUMN_IDid field name, srsIdstatic StringCOLUMN_ORGANIZATIONorganization field namestatic StringCOLUMN_ORGANIZATION_COORDSYS_IDorganizationCoordsysId field namestatic StringCOLUMN_SRS_IDsrsId field namestatic StringCOLUMN_SRS_NAMEsrsName field namestatic StringTABLE_NAMETable 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 contentsStringgetDefinition()Get the definitionStringgetDefinition_12_063()Get the 12_063 WKT definitionStringgetDescription()Get the descriptionDoublegetEpoch()Get the coordinate epochForeignCollection<GeometryColumns>getGeometryColumns()Get the geometry columnslonggetId()Get the idStringgetOrganization()Get the organizationlonggetOrganizationCoordsysId()Get the organization coordsys idProjectiongetProjection()Get the projection for the Spatial Reference SystemStringgetProjectionDefinition()Get the projection definitionlonggetSrsId()Get the srs idStringgetSrsName()Get the srs nameForeignCollection<TileMatrixSet>getTileMatrixSet()Get the tile matrix setGeometryTransformgetTransformation(Projection projection)Get the projection transform from the provided projection to the Spatial Reference System projectionvoidsetDefinition(String definition)Set the definitionvoidsetDefinition_12_063(String definition_12_063)Set the 12_063 WKT definitionvoidsetDescription(String description)Set the descriptionvoidsetEpoch(Double epoch)Set the coordinate epochvoidsetId(long id)Set the idvoidsetOrganization(String organization)Set the organizationvoidsetOrganizationCoordsysId(long organizationCoordsysId)Set the organization coordsys idvoidsetSrsId(long srsId)Set the srs idvoidsetSrsName(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
-
-