Class SpatialReferenceSystem


  • public class SpatialReferenceSystem
    extends Object
    Spatial Reference System object. The coordinate reference system definitions it contains are referenced by the GeoPackage Contents and GeometryColumns objects to relate the vector and tile data in user tables to locations on the earth.
    Author:
    osbornb
    • 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
      • 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