Class DGIWGGeoPackageManager


  • public class DGIWGGeoPackageManager
    extends Object
    DGIWG (Defence Geospatial Information Working Group) GeoPackage Manager used to create and open GeoPackages
    Since:
    6.6.0
    Author:
    osbornb
    • Constructor Detail

      • DGIWGGeoPackageManager

        public DGIWGGeoPackageManager()
    • Method Detail

      • create

        public static GeoPackageFile create​(File file,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        file - file
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(File file,
                                            String uri,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        file - file
        uri - URI
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(File file,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        file - file
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • create

        public static GeoPackageFile create​(File file,
                                            String uri,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        file - file
        uri - URI
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • create

        public static GeoPackageFile create​(String name,
                                            File directory,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        name - GeoPackage file name
        directory - base directory
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(String name,
                                            File directory,
                                            String uri,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        name - GeoPackage file name
        directory - base directory
        uri - URI
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(String name,
                                            File directory,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        name - GeoPackage file name
        directory - base directory
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • create

        public static GeoPackageFile create​(String name,
                                            File directory,
                                            String uri,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        name - GeoPackage file name
        directory - base directory
        uri - URI
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • create

        public static GeoPackageFile create​(File directory,
                                            GeoPackageFileName fileName,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        directory - base directory
        fileName - DGIWG file name
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(File directory,
                                            GeoPackageFileName fileName,
                                            String uri,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        directory - base directory
        fileName - DGIWG file name
        uri - URI
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(File directory,
                                            GeoPackageFileName fileName,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        directory - base directory
        fileName - DGIWG file name
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • create

        public static GeoPackageFile create​(File directory,
                                            GeoPackageFileName fileName,
                                            String uri,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        directory - base directory
        fileName - DGIWG file name
        uri - URI
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • create

        public static GeoPackageFile create​(GeoPackageFileName fileName,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        fileName - DGIWG file name
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(GeoPackageFileName fileName,
                                            String uri,
                                            String metadata)
        Create a GeoPackage
        Parameters:
        fileName - DGIWG file name
        uri - URI
        metadata - metadata
        Returns:
        created file
      • create

        public static GeoPackageFile create​(GeoPackageFileName fileName,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        fileName - DGIWG file name
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • create

        public static GeoPackageFile create​(GeoPackageFileName fileName,
                                            String uri,
                                            String metadata,
                                            boolean validate)
        Create a GeoPackage
        Parameters:
        fileName - DGIWG file name
        uri - URI
        metadata - metadata
        validate - validate the file extension and name
        Returns:
        created file
      • open

        public static DGIWGGeoPackage open​(GeoPackageFile file,
                                           boolean validate)
        Open a GeoPackage
        Parameters:
        file - DGIWG file
        validate - validate the GeoPackage
        Returns:
        GeoPackage
      • open

        public static DGIWGGeoPackage open​(String name,
                                           GeoPackageFile file,
                                           boolean validate)
        Open a GeoPackage
        Parameters:
        name - GeoPackage name
        file - DGIWG file
        validate - validate the GeoPackage
        Returns:
        GeoPackage
      • open

        public static DGIWGGeoPackage open​(File file)
        Open a GeoPackage
        Parameters:
        file - file
        Returns:
        GeoPackage
      • open

        public static DGIWGGeoPackage open​(File file,
                                           boolean validate)
        Open a GeoPackage
        Parameters:
        file - file
        validate - validate the GeoPackage
        Returns:
        GeoPackage
      • open

        public static DGIWGGeoPackage open​(String name,
                                           File file)
        Open a GeoPackage
        Parameters:
        name - GeoPackage name
        file - GeoPackage file
        Returns:
        GeoPackage
      • open

        public static DGIWGGeoPackage open​(String name,
                                           File file,
                                           boolean validate)
        Open a GeoPackage
        Parameters:
        name - GeoPackage name
        file - GeoPackage file
        validate - validate the GeoPackage, storing any errors
        Returns:
        GeoPackage
      • 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