Class DGIWGGeoPackageManager

java.lang.Object
mil.nga.geopackage.GeoPackageManagerImpl
mil.nga.geopackage.dgiwg.DGIWGGeoPackageManager
All Implemented Interfaces:
GeoPackageManager

public class DGIWGGeoPackageManager extends GeoPackageManagerImpl
DGIWG (Defence Geospatial Information Working Group) GeoPackage Manager used to create and open GeoPackages
Since:
6.7.0
  • Constructor Details

    • DGIWGGeoPackageManager

      protected DGIWGGeoPackageManager(Context context)
      Constructor
      Parameters:
      context - context
  • Method Details

    • create

      public GeoPackageFile create(String database, String metadata)
      Create a GeoPackage
      Parameters:
      database - database name
      metadata - metadata
      Returns:
      GeoPackage file if created
    • create

      public GeoPackageFile create(String database, String uri, String metadata)
      Create a GeoPackage
      Parameters:
      database - database name
      uri - URI
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createAtPath

      public GeoPackageFile createAtPath(String database, File path, String metadata)
      Create a new GeoPackage database at the provided directory path
      Parameters:
      database - database name
      path - directory path
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createAtPath

      public GeoPackageFile createAtPath(String database, File path, String uri, String metadata)
      Create a new GeoPackage database at the provided directory path
      Parameters:
      database - database name
      path - directory path
      uri - URI
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(File file, String metadata)
      Create a new GeoPackage database at the specified file location
      Parameters:
      file - GeoPackage file path
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(File file, String uri, String metadata)
      Create a new GeoPackage database at the specified file location
      Parameters:
      file - GeoPackage file path
      uri - URI
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(String database, File file, String metadata)
      Create a new GeoPackage database at the specified file location with the provided name
      Parameters:
      database - database name
      file - GeoPackage file path
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(String database, File file, String uri, String metadata)
      Create a new GeoPackage database at the specified file location with the provided name
      Parameters:
      database - database name
      file - GeoPackage file path
      uri - URI
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(androidx.documentfile.provider.DocumentFile file, String metadata)
      Create a new GeoPackage database at the specified file location
      Parameters:
      file - GeoPackage document file
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(androidx.documentfile.provider.DocumentFile file, String uri, String metadata)
      Create a new GeoPackage database at the specified file location
      Parameters:
      file - GeoPackage document file
      uri - URI
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(String database, androidx.documentfile.provider.DocumentFile file, String metadata)
      Create a new GeoPackage database at the specified file location with the provided name
      Parameters:
      database - database name
      file - GeoPackage document file
      metadata - metadata
      Returns:
      GeoPackage file if created
    • createFile

      public GeoPackageFile createFile(String database, androidx.documentfile.provider.DocumentFile file, String uri, String metadata)
      Create a new GeoPackage database at the specified file location with the provided name
      Parameters:
      database - database name
      file - GeoPackage document file
      uri - URI
      metadata - metadata
      Returns:
      GeoPackage file if created
    • open

      public DGIWGGeoPackage open(String database)
      Open the database
      Specified by:
      open in interface GeoPackageManager
      Overrides:
      open in class GeoPackageManagerImpl
      Parameters:
      database - database name
      Returns:
      open GeoPackage
    • open

      public DGIWGGeoPackage open(String database, boolean writable)
      Open the database
      Specified by:
      open in interface GeoPackageManager
      Overrides:
      open in class GeoPackageManagerImpl
      Parameters:
      database - database name
      writable - true to open as writable, false as read only
      Returns:
      open GeoPackage
    • open

      public DGIWGGeoPackage open(boolean validate, String database)
      Open the database
      Parameters:
      validate - validate the GeoPackage
      database - database name
      Returns:
      open GeoPackage
    • open

      public DGIWGGeoPackage open(String database, boolean writable, boolean validate)
      Open the database
      Parameters:
      database - database name
      writable - true to open as writable, false as read only
      validate - validate the GeoPackage
      Returns:
      open GeoPackage
    • open

      public DGIWGGeoPackage open(GeoPackageFile file)
      Open the database
      Parameters:
      file - GeoPackage file
      Returns:
      open GeoPackage
    • open

      public DGIWGGeoPackage open(GeoPackageFile file, boolean writable)
      Open the database
      Parameters:
      file - GeoPackage file
      writable - true to open as writable, false as read only
      Returns:
      open GeoPackage
    • open

      public DGIWGGeoPackage open(boolean validate, GeoPackageFile file)
      Open the database
      Parameters:
      validate - validate the GeoPackage
      file - GeoPackage file
      Returns:
      open GeoPackage
    • open

      public DGIWGGeoPackage open(GeoPackageFile file, boolean writable, boolean validate)
      Open the database
      Parameters:
      file - GeoPackage file
      writable - true to open as writable, false as read only
      validate - validate the GeoPackage
      Returns:
      open GeoPackage
    • delete

      public boolean delete(GeoPackageFile file)
      Delete the database
      Parameters:
      file - GeoPackage file
      Returns:
      true if deleted
    • isValid

      public static boolean isValid(DGIWGGeoPackage geoPackage)
      Is the GeoPackage valid according to the DGIWG GeoPackage Profile
      Parameters:
      geoPackage - GeoPackage
      Returns:
      true if valid
    • validate

      public static DGIWGValidationErrors validate(DGIWGGeoPackage geoPackage)
      Validate the GeoPackage against the DGIWG GeoPackage Profile
      Parameters:
      geoPackage - GeoPackage
      Returns:
      validation errors