GPKGGeoPackageValidate

Objective-C

@interface GPKGGeoPackageValidate : NSObject

Swift

class GPKGGeoPackageValidate : NSObject

Performs GeoPackage validations

  • Check the file extension to see if it is a GeoPackage

    Declaration

    Objective-C

    + (BOOL)hasGeoPackageExtension:(NSString *)file;

    Swift

    class func hasGeoPackageExtension(_ file: String!) -> Bool

    Parameters

    file

    file path

    Return Value

    true if GeoPackage extension

  • Check if a GeoPackage extension

    Declaration

    Objective-C

    + (BOOL)isGeoPackageExtension:(NSString *)extension;

    Swift

    class func isGeoPackageExtension(_ extension: String!) -> Bool

    Parameters

    extension

    file extension

    Return Value

    true if GeoPackage extension

  • Validate the extension file as a GeoPackage

    Declaration

    Objective-C

    + (void)validateGeoPackageExtension:(NSString *)file;

    Swift

    class func validateGeoPackageExtension(_ file: String!)

    Parameters

    file

    file path

  • Add a GeoPackage extension if one does not exist

    Declaration

    Objective-C

    + (NSString *)addGeoPackageExtension:(NSString *)name;

    Swift

    class func addGeoPackageExtension(_ name: String!) -> String!

    Parameters

    name

    GeoPackage file name

    Return Value

    GeoPackage name with extension

  • Check the GeoPackage for the minimum required tables

    Declaration

    Objective-C

    + (BOOL)hasMinimumTables:(GPKGGeoPackage *)geoPackage;

    Swift

    class func hasMinimumTables(_ geoPackage: GPKGGeoPackage!) -> Bool

    Parameters

    geoPackage

    GeoPackage

    Return Value

    true if has minimum tables

  • Validate the GeoPackage has the minimum required tables

    Declaration

    Objective-C

    + (void)validateMinimumTables:(GPKGGeoPackage *)geoPackage;

    Swift

    class func validateMinimumTables(_ geoPackage: GPKGGeoPackage!)

    Parameters

    geoPackage

    GeoPackage