GPKGFeatureTableData

Objective-C

@interface GPKGFeatureTableData : NSObject

Swift

class GPKGFeatureTableData : NSObject

Represents a collection of rows from a feature table

  • Initializer

    Declaration

    Objective-C

    - (instancetype)initWithName:(NSString *)name andCount:(int)count;

    Swift

    init!(name: String!, andCount count: Int32)

    Parameters

    name

    table name

    count

    feature count

    Return Value

    new instance

  • Initializer

    Declaration

    Objective-C

    - (instancetype)initWithName:(NSString *)name
                        andCount:(int)count
                         andRows:(NSArray<GPKGFeatureRowData *> *)rows;

    Swift

    init!(name: String!, andCount count: Int32, andRows rows: [GPKGFeatureRowData]!)

    Parameters

    name

    table name

    count

    feature count

    rows

    feature rows

    Return Value

    new instance

  • Get the table name

    Declaration

    Objective-C

    - (NSString *)name;

    Swift

    func name() -> String!

    Return Value

    table name

  • Get the feature row count

    Declaration

    Objective-C

    - (int)count;

    Swift

    func count() -> Int32

    Return Value

    count of rows

  • Get the feature row data

    Declaration

    Objective-C

    - (NSArray<GPKGFeatureRowData *> *)rows;

    Swift

    func rows() -> [GPKGFeatureRowData]!

    Return Value

    feature rows

  • Build a JSON compatible object

    Declaration

    Objective-C

    - (NSObject *)jsonCompatible;

    Swift

    func jsonCompatible() -> NSObject!

    Return Value

    JSON compatible object

  • Build a JSON compatible object

    Declaration

    Objective-C

    - (NSObject *)jsonCompatibleWithPoints:(BOOL)includePoints;

    Swift

    func json(compatibleWithPoints includePoints: Bool) -> NSObject!

    Parameters

    includePoints

    true to include point geometries, but no other geometry types

    Return Value

    JSON compatible object

  • Build a JSON compatible object

    Declaration

    Objective-C

    - (NSObject *)jsonCompatibleWithGeometries:(BOOL)includeGeometries;

    Swift

    func json(compatibleWithGeometries includeGeometries: Bool) -> NSObject!

    Parameters

    includeGeometries

    true to include all geometries, false for no geometries

    Return Value

    JSON compatible object

  • Build a JSON compatible object

    Declaration

    Objective-C

    - (NSObject *)jsonCompatibleWithPoints:(BOOL)includePoints
                             andGeometries:(BOOL)includeGeometries;

    Swift

    func json(compatibleWithPoints includePoints: Bool, andGeometries includeGeometries: Bool) -> NSObject!

    Parameters

    includePoints

    true to include point geometries, ignored if includeGeometries is true

    includeGeometries

    true to include all geometry types

    Return Value

    JSON compatible object