Class GeoPackageValidate


  • public class GeoPackageValidate
    extends Object
    Performs GeoPackage validations
    Author:
    osbornb
    • Constructor Detail

      • GeoPackageValidate

        public GeoPackageValidate()
    • Method Detail

      • hasGeoPackageExtension

        public static boolean hasGeoPackageExtension​(File file)
        Check the file extension to see if it is a GeoPackage
        Parameters:
        file - GeoPackage file
        Returns:
        true if GeoPackage extension
      • hasGeoPackageExtension

        public static boolean hasGeoPackageExtension​(String name)
        Check the file name extension to see if it is a GeoPackage
        Parameters:
        name - GeoPackage file name
        Returns:
        true if GeoPackage extension
        Since:
        3.5.0
      • isGeoPackageExtension

        public static boolean isGeoPackageExtension​(String extension)
        Check if a GeoPackage extension
        Parameters:
        extension - file extension
        Returns:
        true if GeoPackage extension
        Since:
        3.5.0
      • validateGeoPackageExtension

        public static void validateGeoPackageExtension​(File file)
        Validate the extension file as a GeoPackage
        Parameters:
        file - GeoPackage file
      • validateGeoPackageExtension

        public static void validateGeoPackageExtension​(String name)
        Validate the extension file name as a GeoPackage
        Parameters:
        name - GeoPackage file name
        Since:
        3.5.0
      • addGeoPackageExtension

        public static File addGeoPackageExtension​(File file)
        Add a GeoPackage extension if one does not exist
        Parameters:
        file - GeoPackage file
        Returns:
        GeoPackage file with extension
        Since:
        3.5.0
      • addGeoPackageExtension

        public static String addGeoPackageExtension​(String name)
        Add a GeoPackage extension if one does not exist
        Parameters:
        name - GeoPackage file name
        Returns:
        GeoPackage name with extension
        Since:
        3.5.0
      • hasMinimumTables

        public static boolean hasMinimumTables​(GeoPackageCore geoPackage)
        Check the GeoPackage for the minimum required tables
        Parameters:
        geoPackage - GeoPackage
        Returns:
        true if has minimum tables
      • validateMinimumTables

        public static void validateMinimumTables​(GeoPackageCore geoPackage)
        Validate the GeoPackage has the minimum required tables
        Parameters:
        geoPackage - GeoPackage