GPKGFeatureColumn
Objective-C
@interface GPKGFeatureColumn : GPKGUserColumn
Swift
class GPKGFeatureColumn : GPKGUserColumn
Feature column
-
Geometry type if a geometry column
Declaration
Objective-C
@property (nonatomic) enum SFGeometryType geometryType;
Swift
var geometryType: SFGeometryType { get set }
-
Create a new primary key column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createPrimaryKeyColumnWithName:(NSString *)name;
Swift
class func createPrimaryKeyColumn(withName name: String!) -> GPKGFeatureColumn!
Parameters
name
column name
Return Value
feature column
-
Create a new primary key column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createPrimaryKeyColumnWithName:(NSString *)name andAutoincrement:(BOOL)autoincrement;
Swift
class func createPrimaryKeyColumn(withName name: String!, andAutoincrement autoincrement: Bool) -> GPKGFeatureColumn!
Parameters
name
name
autoincrement
autoincrement flag
Return Value
feature column
-
Create a new primary key column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createPrimaryKeyColumnWithIndex:(int)index andName:(NSString *)name;
Swift
class func createPrimaryKeyColumn(with index: Int32, andName name: String!) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
Return Value
feature column
-
Create a new primary key column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createPrimaryKeyColumnWithIndex:(int)index andName:(NSString *)name andAutoincrement:(BOOL)autoincrement;
Swift
class func createPrimaryKeyColumn(with index: Int32, andName name: String!, andAutoincrement autoincrement: Bool) -> GPKGFeatureColumn!
Parameters
index
index
name
name
autoincrement
autoincrement flag
Return Value
feature column
-
Create a new geometry column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createGeometryColumnWithName:(NSString *)name andGeometryType:(enum SFGeometryType)type;
Swift
class func createGeometryColumn(withName name: String!, andGeometryType type: SFGeometryType) -> GPKGFeatureColumn!
Parameters
name
column name
type
geometry type
Return Value
feature column
-
Create a new geometry column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createGeometryColumnWithIndex:(int)index andName:(NSString *)name andGeometryType:(enum SFGeometryType)type;
Swift
class func createGeometryColumn(with index: Int32, andName name: String!, andGeometryType type: SFGeometryType) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
type
geometry type
Return Value
feature column
-
Create a new geometry column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createGeometryColumnWithName:(NSString *)name andGeometryType:(enum SFGeometryType)type andNotNull:(BOOL)notNull andDefaultValue:(NSObject *)defaultValue;
Swift
class func createGeometryColumn(withName name: String!, andGeometryType type: SFGeometryType, andNotNull notNull: Bool, andDefaultValue defaultValue: NSObject!) -> GPKGFeatureColumn!
Parameters
name
column name
type
geometry type
notNull
not null
defaultValue
default value or nil
Return Value
feature column
-
Create a new geometry column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createGeometryColumnWithIndex:(int)index andName:(NSString *)name andGeometryType:(enum SFGeometryType)type andNotNull:(BOOL)notNull andDefaultValue:(NSObject *)defaultValue;
Swift
class func createGeometryColumn(with index: Int32, andName name: String!, andGeometryType type: SFGeometryType, andNotNull notNull: Bool, andDefaultValue defaultValue: NSObject!) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
type
geometry type
notNull
not null
defaultValue
default value or nil
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithName:(NSString *)name andDataType:(enum GPKGDataType)type;
Swift
class func createColumn(withName name: String!, andDataType type: GPKGDataType) -> GPKGFeatureColumn!
Parameters
name
column name
type
data type
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithIndex:(int)index andName:(NSString *)name andDataType:(enum GPKGDataType)type;
Swift
class func createColumn(with index: Int32, andName name: String!, andDataType type: GPKGDataType) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
type
data type
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithName:(NSString *)name andDataType:(enum GPKGDataType)type andNotNull:(BOOL)notNull;
Swift
class func createColumn(withName name: String!, andDataType type: GPKGDataType, andNotNull notNull: Bool) -> GPKGFeatureColumn!
Parameters
name
column name
type
data type
notNull
not null
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithIndex:(int)index andName:(NSString *)name andDataType:(enum GPKGDataType)type andNotNull:(BOOL)notNull;
Swift
class func createColumn(with index: Int32, andName name: String!, andDataType type: GPKGDataType, andNotNull notNull: Bool) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
type
data type
notNull
not null
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithName:(NSString *)name andDataType:(enum GPKGDataType)type andNotNull:(BOOL)notNull andDefaultValue:(NSObject *)defaultValue;
Swift
class func createColumn(withName name: String!, andDataType type: GPKGDataType, andNotNull notNull: Bool, andDefaultValue defaultValue: NSObject!) -> GPKGFeatureColumn!
Parameters
name
column name
type
data type
notNull
not null
defaultValue
default value or nil
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithIndex:(int)index andName:(NSString *)name andDataType:(enum GPKGDataType)type andNotNull:(BOOL)notNull andDefaultValue:(NSObject *)defaultValue;
Swift
class func createColumn(with index: Int32, andName name: String!, andDataType type: GPKGDataType, andNotNull notNull: Bool, andDefaultValue defaultValue: NSObject!) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
type
data type
notNull
not null
defaultValue
default value or nil
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithName:(NSString *)name andDataType:(enum GPKGDataType)type andMax:(NSNumber *)max;
Swift
class func createColumn(withName name: String!, andDataType type: GPKGDataType, andMax max: NSNumber!) -> GPKGFeatureColumn!
Parameters
name
column name
type
data type
max
max value
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithIndex:(int)index andName:(NSString *)name andDataType:(enum GPKGDataType)type andMax:(NSNumber *)max;
Swift
class func createColumn(with index: Int32, andName name: String!, andDataType type: GPKGDataType, andMax max: NSNumber!) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
type
data type
max
max value
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithName:(NSString *)name andDataType:(enum GPKGDataType)type andMax:(NSNumber *)max andNotNull:(BOOL)notNull andDefaultValue:(NSObject *)defaultValue;
Swift
class func createColumn(withName name: String!, andDataType type: GPKGDataType, andMax max: NSNumber!, andNotNull notNull: Bool, andDefaultValue defaultValue: NSObject!) -> GPKGFeatureColumn!
Parameters
name
column name
type
data type
max
max value
notNull
not null
defaultValue
default value or nil
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithIndex:(int)index andName:(NSString *)name andDataType:(enum GPKGDataType)type andMax:(NSNumber *)max andNotNull:(BOOL)notNull andDefaultValue:(NSObject *)defaultValue;
Swift
class func createColumn(with index: Int32, andName name: String!, andDataType type: GPKGDataType, andMax max: NSNumber!, andNotNull notNull: Bool, andDefaultValue defaultValue: NSObject!) -> GPKGFeatureColumn!
Parameters
index
column index
name
column name
type
data type
max
max value
notNull
not null
defaultValue
default value or nil
Return Value
feature column
-
Create a new column
Declaration
Objective-C
+ (GPKGFeatureColumn *)createColumnWithTableColumn: (GPKGTableColumn *)tableColumn;
Swift
class func createColumn(with tableColumn: GPKGTableColumn!) -> GPKGFeatureColumn!
Parameters
tableColumn
table column
Return Value
feature column
-
-initWithIndex:
andName: andDataType: andMax: andNotNull: andDefaultValue: andPrimaryKey: andAutoincrement: andGeometryType: Initialize
Declaration
Objective-C
- (instancetype)initWithIndex:(int)index andName:(NSString *)name andDataType:(enum GPKGDataType)dataType andMax:(NSNumber *)max andNotNull:(BOOL)notNull andDefaultValue:(NSObject *)defaultValue andPrimaryKey:(BOOL)primaryKey andAutoincrement:(BOOL)autoincrement andGeometryType:(enum SFGeometryType)geometryType;
Swift
init!(index: Int32, andName name: String!, andDataType dataType: GPKGDataType, andMax max: NSNumber!, andNotNull notNull: Bool, andDefaultValue defaultValue: NSObject!, andPrimaryKey primaryKey: Bool, andAutoincrement autoincrement: Bool, andGeometryType geometryType: SFGeometryType)
Parameters
index
column index
name
column name
dataType
data type
max
max value
notNull
not null
defaultValue
default value or nil
primaryKey
true if primary key
autoincrement
autoincrement flag
geometryType
geometry type
Return Value
new feature column
-
Determine if this column is a geometry
Declaration
Objective-C
- (BOOL)isGeometry;
Swift
func isGeometry() -> Bool
Return Value
true if a geometry column