GPKGFeatureColumns

Objective-C

@interface GPKGFeatureColumns : GPKGUserColumns

Swift

class GPKGFeatureColumns : GPKGUserColumns

Collection of feature columns

  • Geometry column name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *geometryColumnName;

    Swift

    var geometryColumnName: String! { get set }
  • Geometry column index

    Declaration

    Objective-C

    @property (nonatomic) int geometryIndex;

    Swift

    var geometryIndex: Int32 { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithTable:(NSString *)tableName
                andGeometryColumn:(NSString *)geometryColumn
                       andColumns:(NSArray *)columns;

    Swift

    init!(table tableName: String!, andGeometryColumn geometryColumn: String!, andColumns columns: [Any]!)

    Parameters

    tableName

    table name

    geometryColumn

    geometry column

    columns

    columns

    Return Value

    new feature columns

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithTable:(NSString *)tableName
                andGeometryColumn:(NSString *)geometryColumn
                       andColumns:(NSArray *)columns
                        andCustom:(BOOL)custom;

    Swift

    init!(table tableName: String!, andGeometryColumn geometryColumn: String!, andColumns columns: [Any]!, andCustom custom: Bool)

    Parameters

    tableName

    table name

    geometryColumn

    geometry column

    columns

    columns

    custom

    custom column specification

    Return Value

    new feature columns

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithFeatureColumns:(GPKGFeatureColumns *)featureColumns;

    Swift

    init!(featureColumns: GPKGFeatureColumns!)

    Parameters

    featureColumns

    feature columns

    Return Value

    new feature columns

  • Check if the table has a geometry column

    Declaration

    Objective-C

    - (BOOL)hasGeometryColumn;

    Swift

    func hasGeometryColumn() -> Bool

    Return Value

    true if has a geometry column

  • Get the geometry feature column

    Declaration

    Objective-C

    - (GPKGFeatureColumn *)geometryColumn;

    Swift

    func geometryColumn() -> GPKGFeatureColumn!

    Return Value

    geometry feature column