GPKGWebPExtension

Objective-C

@interface GPKGWebPExtension : GPKGBaseExtension

Swift

class GPKGWebPExtension : GPKGBaseExtension

WebP Extension

https://www.geopackage.org/spec/#extension_tiles_webp

  • Extension name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *extensionName;

    Swift

    var extensionName: String! { get set }
  • Extension definition URL

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *definition;

    Swift

    var definition: String! { get set }
  • Initialize

    Declaration

    Objective-C

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

    Swift

    init!(geoPackage: GPKGGeoPackage!)

    Parameters

    geoPackage

    GeoPackage

    Return Value

    new instance

  • Get or create the extension

    Declaration

    Objective-C

    - (GPKGExtensions *)extensionCreateWithTableName:(NSString *)tableName;

    Swift

    func extensionCreate(withTableName tableName: String!) -> GPKGExtensions!

    Parameters

    tableName

    table name

    Return Value

    extension

  • Determine if the GeoPackage has the extension

    Declaration

    Objective-C

    - (BOOL)hasWithTableName:(NSString *)tableName;

    Swift

    func has(withTableName tableName: String!) -> Bool

    Parameters

    tableName

    table name

    Return Value

    true if has extension