GPKGDataColumns

Objective-C

@interface GPKGDataColumns : NSObject <NSMutableCopying>

Swift

class GPKGDataColumns : NSObject, NSMutableCopying

Stores minimal application schema identifying, descriptive and MIME type information about columns in user vector feature and tile matrix data tables that supplements the data available from the SQLite sqlite_master table and pragma table_info(table_name) SQL function. The gpkg_data_columns data CAN be used to provide more specific column data types and value ranges and application specific structural and semantic information to enable more informative user menu displays and more effective user decisions on the suitability of GeoPackage contents for specific purposes.

  • Name of the tiles or feature table

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *tableName;

    Swift

    var tableName: String! { get set }
  • Name of the table column

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *columnName;

    Swift

    var columnName: String! { get set }
  • A human-readable identifier (e.g. short name) for the column_name content

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *name;

    Swift

    var name: String! { get set }
  • A human-readable formal title for the column_name content

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *title;

    Swift

    var title: String! { get set }
  • A human-readable description for the column_name content

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *theDescription;

    Swift

    var theDescription: String! { get set }
  • MIME type of column_name if BLOB type, or NULL for other types

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *mimeType;

    Swift

    var mimeType: String! { get set }
  • Case sensitive column value constraint name specified by reference to gpkg_data_column_constraints.constraint name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *constraintName;

    Swift

    var constraintName: String! { get set }
  • Set the Contents

    Declaration

    Objective-C

    - (void)setContents:(GPKGContents *)contents;

    Swift

    func setContents(_ contents: GPKGContents!)

    Parameters

    contents

    contents

  • Set the Data Column Constraints

    Declaration

    Objective-C

    - (void)setConstraint:(GPKGDataColumnConstraints *)constraint;

    Swift

    func setConstraint(_ constraint: GPKGDataColumnConstraints!)

    Parameters

    constraint

    constraints