Class CrsWktExtension

    • Field Detail

      • DEFINITION_V_1

        public static final String DEFINITION_V_1
        Extension version 1 definition URL
      • DEFINITION_V_1_1

        public static final String DEFINITION_V_1_1
        Extension version 1.1 definition URL
      • DEFINITION_COLUMN_NAME

        public static final String DEFINITION_COLUMN_NAME
        Extension definition column name
        Since:
        6.6.0
      • DEFINITION_COLUMN_DEF

        public static final String DEFINITION_COLUMN_DEF
        Extension definition column definition
        Since:
        6.6.0
      • EPOCH_COLUMN_NAME

        public static final String EPOCH_COLUMN_NAME
        Extension epoch column name
        Since:
        6.6.0
      • EPOCH_COLUMN_DEF

        public static final String EPOCH_COLUMN_DEF
        Extension epoch column definition
        Since:
        6.6.0
    • Constructor Detail

      • CrsWktExtension

        public CrsWktExtension​(GeoPackageCore geoPackage)
        Constructor
        Parameters:
        geoPackage - GeoPackage
    • Method Detail

      • getOrCreate

        public List<Extensions> getOrCreate()
        Get or create the latest version of the extension
        Returns:
        extension
        Since:
        6.6.0
      • getOrCreate

        public List<Extensions> getOrCreate​(CrsWktExtensionVersion version)
        Get or create the version of the extension
        Parameters:
        version - extension version
        Returns:
        extension
        Since:
        6.6.0
      • has

        public boolean has()
        Determine if the GeoPackage has any version of the extension
        Returns:
        true if has extension
      • hasMinimum

        public boolean hasMinimum​(CrsWktExtensionVersion version)
        Determine if the GeoPackage has at least the minimum version of the extension
        Parameters:
        version - extension version
        Returns:
        true if has extension minimum
        Since:
        6.6.0
      • has

        public boolean has​(CrsWktExtensionVersion version)
        Determine if the GeoPackage has the version of the extension
        Parameters:
        version - extension version
        Returns:
        true if has extension
        Since:
        6.6.0
      • getExtensionName

        public String getExtensionName​(CrsWktExtensionVersion version)
        Get the extension name for the version
        Parameters:
        version - extension version
        Returns:
        extension name
        Since:
        6.6.0
      • updateDefinition

        public void updateDefinition​(long srsId,
                                     String definition)
        Update the extension definition
        Parameters:
        srsId - srs id
        definition - definition
      • getDefinition

        public String getDefinition​(long srsId)
        Get the extension definition
        Parameters:
        srsId - srs id
        Returns:
        definition
      • updateEpoch

        public void updateEpoch​(long srsId,
                                Double epoch)
        Update the extension epoch
        Parameters:
        srsId - srs id
        epoch - epoch
        Since:
        6.6.0
      • getEpoch

        public Double getEpoch​(long srsId)
        Get the extension epoch
        Parameters:
        srsId - srs id
        Returns:
        epoch
        Since:
        6.6.0
      • hasDefinitionColumn

        public boolean hasDefinitionColumn()
        Determine if the GeoPackage SRS table has the extension definition column
        Returns:
        true if has column
        Since:
        6.6.0
      • hasEpochColumn

        public boolean hasEpochColumn()
        Determine if the GeoPackage SRS table has the extension epoch column
        Returns:
        true if has column
        Since:
        6.6.0
      • removeExtension

        public void removeExtension()
        Remove the extension. Leaves the column and values.
        Since:
        3.2.0
      • removeExtension

        public void removeExtension​(CrsWktExtensionVersion version)
        Remove the extension. Leaves the column and values.
        Parameters:
        version - extension version
        Since:
        6.6.0