Class GeoPkgMetadataExtension


  • public class GeoPkgMetadataExtension
    extends GeoPkgExtension
    Supports the GeoPackage metadata extension, defined as a "registered extension" in the GeoPackage standard at http://www.geopackage.org/spec121/#extension_metadata
    • Constructor Detail

      • GeoPkgMetadataExtension

        protected GeoPkgMetadataExtension​(GeoPackage geoPackage)
    • Method Detail

      • getMetadatas

        public List<GeoPkgMetadata> getMetadatas()
                                          throws SQLException
        Lists all metadata entries present in the GeoPackage
        Throws:
        SQLException
      • getMetadata

        public GeoPkgMetadata getMetadata​(Long id)
                                   throws SQLException
        Returns a GeoPkgMetadata with the given identifier
        Throws:
        SQLException
      • addMetadata

        public void addMetadata​(GeoPkgMetadata metadata)
                         throws SQLException
        Adds a metadata entry in the GeoPacakge
        Throws:
        SQLException
      • updateMetadata

        public void updateMetadata​(GeoPkgMetadata metadata)
                            throws SQLException
        Updates metadata entry in the GeoPackage
        Throws:
        SQLException
      • removeMetadata

        public void removeMetadata​(GeoPkgMetadata metadata)
                            throws SQLException
        Deletes a metadata entry from the GeoPackage
        Throws:
        SQLException
      • addReference

        public void addReference​(GeoPkgMetadataReference reference)
                          throws SQLException
        Adds a metadata reference in the package
        Parameters:
        reference -
        Throws:
        SQLException
      • updateReference

        public void updateReference​(GeoPkgMetadataReference reference)
                             throws SQLException
        Updates a metadata reference in the pacakge
        Parameters:
        reference -
        Throws:
        SQLException
      • removeReference

        public void removeReference​(GeoPkgMetadataReference reference)
                             throws SQLException
        Removes the given metadata reference from the package
        Throws:
        SQLException