GPKGBaseExtension

Objective-C

@interface GPKGBaseExtension : NSObject

Swift

class GPKGBaseExtension : NSObject

Abstract base GeoPackage extension

  • GeoPackage

    Declaration

    Objective-C

    @property (nonatomic, strong) GPKGGeoPackage *geoPackage;

    Swift

    var geoPackage: GPKGGeoPackage! { get set }
  • Extensions DAO

    Declaration

    Objective-C

    @property (nonatomic, strong) GPKGExtensionsDao *extensionsDao;

    Swift

    var extensionsDao: GPKGExtensionsDao! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage;

    Swift

    init!(geoPackage: GPKGGeoPackage!)

    Parameters

    geoPackage

    GeoPackage

    Return Value

    new base extension

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithDatabase:(GPKGConnection *)database;

    Swift

    init!(database: GPKGConnection!)

    Parameters

    database

    database

    Return Value

    new base extension

  • Get the extension or create as needed

    Declaration

    Objective-C

    - (GPKGExtensions *)extensionCreateWithName:(NSString *)extensionName
                                   andTableName:(NSString *)tableName
                                  andColumnName:(NSString *)columnName
                                  andDefinition:(NSString *)definition
                                       andScope:
                                           (enum GPKGExtensionScopeType)scopeType;

    Swift

    func extensionCreate(withName extensionName: String!, andTableName tableName: String!, andColumnName columnName: String!, andDefinition definition: String!, andScope scopeType: GPKGExtensionScopeType) -> GPKGExtensions!

    Parameters

    extensionName

    extension name

    tableName

    table name

    columnName

    column name

    definition

    extension definition

    scopeType

    extension scope type

    Return Value

    extension

  • Get the extensions for the name, ignoring table name and column name values

    Declaration

    Objective-C

    - (GPKGResultSet *)extensionsWithName:(NSString *)extensionName;

    Swift

    func extensions(withName extensionName: String!) -> GPKGResultSet!

    Parameters

    extensionName

    extension name

    Return Value

    extension results

  • Determine if the GeoPackage has at least one extension, ignoring table name and column name values

    Declaration

    Objective-C

    - (BOOL)hasWithExtensionName:(NSString *)extensionName;

    Swift

    func has(withExtensionName extensionName: String!) -> Bool

    Parameters

    extensionName

    extension name

    Return Value

    true if extension exists

  • Get the extensions for the name and table name, ignoring column name values

    Declaration

    Objective-C

    - (GPKGResultSet *)extensionsWithName:(NSString *)extensionName
                             andTableName:(NSString *)tableName;

    Swift

    func extensions(withName extensionName: String!, andTableName tableName: String!) -> GPKGResultSet!

    Parameters

    extensionName

    extension name

    tableName

    table name

    Return Value

    extension results

  • Determine if the GeoPackage has at least one extension, ignoring column name values

    Declaration

    Objective-C

    - (BOOL)hasWithExtensionName:(NSString *)extensionName
                    andTableName:(NSString *)tableName;

    Swift

    func has(withExtensionName extensionName: String!, andTableName tableName: String!) -> Bool

    Parameters

    extensionName

    extension name

    tableName

    table name

    Return Value

    true if extension exists

  • Get the extension for the name, table name, and column name

    Declaration

    Objective-C

    - (GPKGExtensions *)extensionWithName:(NSString *)extensionName
                             andTableName:(NSString *)tableName
                            andColumnName:(NSString *)columnName;

    Swift

    func `extension`(withName extensionName: String!, andTableName tableName: String!, andColumnName columnName: String!) -> GPKGExtensions!

    Parameters

    extensionName

    extension name

    tableName

    table name

    columnName

    column name

    Return Value

    extension

  • Determine if the GeoPackage has the extension

    Declaration

    Objective-C

    - (BOOL)hasWithExtensionName:(NSString *)extensionName
                    andTableName:(NSString *)tableName
                   andColumnName:(NSString *)columnName;

    Swift

    func has(withExtensionName extensionName: String!, andTableName tableName: String!, andColumnName columnName: String!) -> Bool

    Parameters

    extensionName

    extension name

    tableName

    table name

    columnName

    column name

    Return Value

    true if extension exists

  • Verify the GeoPackage is writable and throw an exception if it is not

    Declaration

    Objective-C

    - (void)verifyWritable;

    Swift

    func verifyWritable()