GPKGPropertiesExtension

Objective-C

@interface GPKGPropertiesExtension : GPKGBaseExtension

Swift

class GPKGPropertiesExtension : GPKGBaseExtension

GeoPackage properties extension for defining GeoPackage specific properties, attributes, and metadata

http://ngageoint.github.io/GeoPackage/docs/extensions/properties.html

  • Initialize

    Declaration

    Objective-C

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

    Swift

    init!(geoPackage: GPKGGeoPackage!)

    Parameters

    geoPackage

    GeoPackage

    Return Value

    new properties extension

  • Get or create the extension

    Declaration

    Objective-C

    - (GPKGExtensions *)extensionCreate;

    Swift

    func extensionCreate() -> GPKGExtensions!

    Return Value

    extension

  • Determine if the GeoPackage has the extension

    Declaration

    Objective-C

    - (BOOL)has;

    Swift

    func has() -> Bool

    Return Value

    true if has extension

  • Get the extension name

    Declaration

    Objective-C

    - (NSString *)extensionName;

    Swift

    func extensionName() -> String!

    Return Value

    extension name

  • Get the extension definition

    Declaration

    Objective-C

    - (NSString *)extensionDefinition;

    Swift

    func extensionDefinition() -> String!

    Return Value

    extension definition

  • Get the number of properties

    Declaration

    Objective-C

    - (int)numProperties;

    Swift

    func numProperties() -> Int32

    Return Value

    property count

  • Get the properties

    Declaration

    Objective-C

    - (NSArray<NSString *> *)properties;

    Swift

    func properties() -> [String]!

    Return Value

    list of properties

  • Check if the property exists, same call as {@link #hasValues(String)}

    Declaration

    Objective-C

    - (BOOL)hasProperty:(NSString *)property;

    Swift

    func hasProperty(_ property: String!) -> Bool

    Return Value

    true if has property

  • Get the number of total values combined for all properties

    Declaration

    Objective-C

    - (int)numValues;

    Swift

    func numValues() -> Int32

    Return Value

    number of total property values

  • Get the number of values for the property

    Declaration

    Objective-C

    - (int)numValuesOfProperty:(NSString *)property;

    Swift

    func numValues(ofProperty property: String!) -> Int32

    Parameters

    property

    property name

    Return Value

    number of values

  • Check if the property has a single value

    Declaration

    Objective-C

    - (BOOL)hasSingleValueWithProperty:(NSString *)property;

    Swift

    func hasSingleValue(withProperty property: String!) -> Bool

    Parameters

    property

    property name

    Return Value

    true if has a single value

  • Check if the property has any values

    Declaration

    Objective-C

    - (BOOL)hasValuesWithProperty:(NSString *)property;

    Swift

    func hasValues(withProperty property: String!) -> Bool

    Parameters

    property

    property name

    Return Value

    true if has any values

  • Get the first value for the property

    Declaration

    Objective-C

    - (NSString *)valueOfProperty:(NSString *)property;

    Swift

    func value(ofProperty property: String!) -> String!

    Parameters

    property

    property name

    Return Value

    value or null

  • Get the values for the property

    Declaration

    Objective-C

    - (NSArray<NSString *> *)valuesOfProperty:(NSString *)property;

    Swift

    func values(ofProperty property: String!) -> [String]!

    Parameters

    property

    property name

    Return Value

    list of values

  • Check if the property has the value

    Declaration

    Objective-C

    - (BOOL)hasValue:(NSString *)value withProperty:(NSString *)property;

    Swift

    func hasValue(_ value: String!, withProperty property: String!) -> Bool

    Parameters

    property

    property name

    value

    property value

    Return Value

    true if property has the value

  • Add a property value, creating the extension if needed

    Declaration

    Objective-C

    - (BOOL)addValue:(NSString *)value withProperty:(NSString *)property;

    Swift

    func addValue(_ value: String!, withProperty property: String!) -> Bool

    Parameters

    property

    property name

    value

    value

    Return Value

    true if added, false if already existed

  • Delete the property and all the property values

    Declaration

    Objective-C

    - (int)deleteProperty:(NSString *)property;

    Swift

    func deleteProperty(_ property: String!) -> Int32

    Parameters

    property

    property name

    Return Value

    deleted values count

  • Delete the property value

    Declaration

    Objective-C

    - (int)deleteValue:(NSString *)value withProperty:(NSString *)property;

    Swift

    func deleteValue(_ value: String!, withProperty property: String!) -> Int32

    Parameters

    property

    property name

    value

    property value

    Return Value

    deleted values count

  • Delete all properties and values

    Declaration

    Objective-C

    - (int)deleteAll;

    Swift

    func deleteAll() -> Int32

    Return Value

    deleted values count

  • Remove the extension

    Declaration

    Objective-C

    - (void)removeExtension;

    Swift

    func remove()