GPKGExtensions

Objective-C

@interface GPKGExtensions : NSObject <NSMutableCopying>

Swift

class GPKGExtensions : NSObject, NSMutableCopying

Indicates that a particular extension applies to a GeoPackage, a table in a GeoPackage or a column of a table in a GeoPackage. An application that access a GeoPackage can query the gpkg_extensions table instead of the contents of all the user data tables to determine if it has the required capabilities to read or write to tables with extensions, and to “fail fast” and return an error message if it does not.

  • Name of the table that requires the extension. When NULL, the extension is required for the entire GeoPackage. SHALL NOT be NULL when the column_name is not NULL.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *tableName;

    Swift

    var tableName: String! { get set }
  • Name of the column that requires the extension. When NULL, the extension is required for the entire table.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *columnName;

    Swift

    var columnName: String! { get set }
  • The case sensitive name of the extension that is required, in the form _.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *extensionName;

    Swift

    var extensionName: String! { get set }
  • Definition of the extension in the form specfied by the template in GeoPackage Extension Template (Normative) or reference thereto.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *definition;

    Swift

    var definition: String! { get set }
  • Indicates scope of extension effects on readers / writers: read-write or write-only in lowercase.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *scope;

    Swift

    var scope: String! { get set }
  • Get the extension scope type

    Declaration

    Objective-C

    - (enum GPKGExtensionScopeType)extensionScopeType;

    Swift

    func extensionScopeType() -> GPKGExtensionScopeType

    Return Value

    extension scope type

  • Set the extension scope type

    Declaration

    Objective-C

    - (void)setExtensionScopeType:(enum GPKGExtensionScopeType)extensionScopeType;

    Swift

    func setExtensionScopeType(_ extensionScopeType: GPKGExtensionScopeType)

    Parameters

    extensionScopeType

    extension scope type

  • Set the extension name by combining the required parts

    Declaration

    Objective-C

    - (void)setExtensionNameWithAuthor:(NSString *)author
                      andExtensionName:(NSString *)extensionName;

    Swift

    func setExtensionNameWithAuthor(_ author: String!, andExtensionName extensionName: String!)

    Parameters

    author

    author

    extensionName

    extension name

  • Get the author from the beginning of the extension name

    Declaration

    Objective-C

    - (NSString *)author;

    Swift

    func author() -> String!

    Return Value

    author

  • Get the extension name with the author prefix removed

    Declaration

    Objective-C

    - (NSString *)extensionNameNoAuthor;

    Swift

    func extensionNameNoAuthor() -> String!

    Return Value

    extension name

  • Build the extension name by combining the required parts

    Declaration

    Objective-C

    + (NSString *)buildExtensionNameWithAuthor:(NSString *)author
                              andExtensionName:(NSString *)extensionName;

    Swift

    class func buildExtensionName(withAuthor author: String!, andExtensionName extensionName: String!) -> String!

    Parameters

    author

    author

    extensionName

    extension name

    Return Value

    extension name

  • Build the extension name with the default author of GeoPackage

    Declaration

    Objective-C

    + (NSString *)buildDefaultAuthorExtensionName:(NSString *)extensionName;

    Swift

    class func buildDefaultAuthorExtensionName(_ extensionName: String!) -> String!

    Parameters

    extensionName

    extension name

    Return Value

    extension name

  • Get the author from the beginning of the extension name

    Declaration

    Objective-C

    + (NSString *)authorWithExtensionName:(NSString *)extensionName;

    Swift

    class func author(withExtensionName extensionName: String!) -> String!

    Parameters

    extensionName

    extension name

    Return Value

    author

  • Get the extension name with the author prefix removed

    Declaration

    Objective-C

    + (NSString *)extensionNameNoAuthorWithExtensionName:(NSString *)extensionName;

    Swift

    class func extensionNameNoAuthor(withExtensionName extensionName: String!) -> String!

    Parameters

    extensionName

    extension name

    Return Value

    extension name, no author