GPKGContentsDao
Objective-C
@interface GPKGContentsDao : GPKGBaseDao
Swift
class GPKGContentsDao : GPKGBaseDao
Contents Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGContentsDao *)createWithDatabase:(GPKGConnection *)database;Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGContentsDao!Parameters
databasedatabase connection
Return Value
dao
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDatabase:(GPKGConnection *)database;Swift
init!(database: GPKGConnection!)Parameters
databasedatabase connection
Return Value
new contents dao
-
Get table names by data type
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByType:(enum GPKGContentsDataType)dataType;Swift
func tables(by dataType: GPKGContentsDataType) -> [String]!Parameters
dataTypedata type
Return Value
table names
-
Get table names by data types
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByTypes:(NSArray<NSNumber *> *)dataTypes;Swift
func tables(byTypes dataTypes: [NSNumber]!) -> [String]!Parameters
dataTypesdata types
Return Value
table names
-
Get table names by data type
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByTypeName:(NSString *)dataType;Swift
func tables(byTypeName dataType: String!) -> [String]!Parameters
dataTypedata type
Return Value
table names
-
Get table names by data types
Declaration
Objective-C
- (NSArray<NSString *> *)tablesByTypeNames:(NSArray<NSString *> *)dataTypes;Swift
func tables(byTypeNames dataTypes: [String]!) -> [String]!Parameters
dataTypesdata types
Return Value
table names
-
Get contents by data type
Declaration
Objective-C
- (GPKGResultSet *)contentsByType:(enum GPKGContentsDataType)dataType;Swift
func contents(by dataType: GPKGContentsDataType) -> GPKGResultSet!Parameters
dataTypedata type
Return Value
contents result set
-
Get contents by data types
Declaration
Objective-C
- (GPKGResultSet *)contentsByTypes:(NSArray<NSNumber *> *)dataTypes;Swift
func contents(byTypes dataTypes: [NSNumber]!) -> GPKGResultSet!Parameters
dataTypesdata types
Return Value
contents result set
-
Get contents by data type
Declaration
Objective-C
- (GPKGResultSet *)contentsByTypeName:(NSString *)dataType;Swift
func contents(byTypeName dataType: String!) -> GPKGResultSet!Parameters
dataTypedata type
Return Value
contents result set
-
Get contents by data types
Declaration
Objective-C
- (GPKGResultSet *)contentsByTypeNames:(NSArray<NSString *> *)dataTypes;Swift
func contents(byTypeNames dataTypes: [String]!) -> GPKGResultSet!Parameters
dataTypesdata types
Return Value
contents result set
-
Get table names
Declaration
Objective-C
- (NSArray<NSString *> *)tables;Swift
func tables() -> [String]!Return Value
table names
-
Delete the Contents, cascading
Declaration
Objective-C
- (int)deleteCascade:(GPKGContents *)contents;Swift
func deleteCascade(_ contents: GPKGContents!) -> Int32Parameters
contentscontents
Return Value
rows deleted
-
Delete the Contents, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteCascade:(GPKGContents *)contents andUserTable:(BOOL)userTable;Swift
func deleteCascade(_ contents: GPKGContents!, andUserTable userTable: Bool) -> Int32Parameters
contentscontents
userTabledelete user table
Return Value
rows deleted
-
Delete the collection of Contents, cascading
Declaration
Objective-C
- (int)deleteCascadeWithCollection:(NSArray *)contentsCollection;Swift
func deleteCascade(withCollection contentsCollection: [Any]!) -> Int32Parameters
contentsCollectioncontents array
Return Value
rows deleted
-
Delete the collection of Contents, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteCascadeWithCollection:(NSArray *)contentsCollection andUserTable:(BOOL)userTable;Swift
func deleteCascade(withCollection contentsCollection: [Any]!, andUserTable userTable: Bool) -> Int32Parameters
contentsCollectioncontents array
userTabledelete user table
Return Value
rows deleted
-
Delete the Contents where, cascading
Declaration
Objective-C
- (int)deleteCascadeWhere:(NSString *)where andWhereArgs:(NSArray *)whereArgs;Swift
func deleteCascadeWhere(_ where: String!, andWhereArgs whereArgs: [Any]!) -> Int32Parameters
wherewhere clause
whereArgswhere args
Return Value
rows deleted
-
Delete the Contents where, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteCascadeWhere:(NSString *)where andWhereArgs:(NSArray *)whereArgs andUserTable:(BOOL)userTable;Swift
func deleteCascadeWhere(_ where: String!, andWhereArgs whereArgs: [Any]!, andUserTable userTable: Bool) -> Int32Parameters
wherewhere clause
whereArgswhere args
userTabledelete user table
Return Value
rows deleted
-
Delete the Contents by id, cascading
Declaration
Objective-C
- (int)deleteByIdCascade:(NSString *)id;Swift
func delete(byIdCascade id: String!) -> Int32Parameters
idid
Return Value
rows deleted
-
Delete the Contents by id, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteByIdCascade:(NSString *)id andUserTable:(BOOL)userTable;Swift
func delete(byIdCascade id: String!, andUserTable userTable: Bool) -> Int32Parameters
idid
userTabledelete user table
Return Value
rows deleted
-
Delete the Contents by ids, cascading
Declaration
Objective-C
- (int)deleteIdsCascade:(NSArray *)idCollection;Swift
func deleteIdsCascade(_ idCollection: [Any]!) -> Int32Parameters
idCollectionid array
Return Value
rows deleted
-
Delete the Contents by ids, cascading optionally including the user table
Declaration
Objective-C
- (int)deleteIdsCascade:(NSArray *)idCollection andUserTable:(BOOL)userTable;Swift
func deleteIdsCascade(_ idCollection: [Any]!, andUserTable userTable: Bool) -> Int32Parameters
idCollectionid array
userTabledelete user table
Return Value
rows deleted
-
Delete the table
Declaration
Objective-C
- (void)deleteTable:(NSString *)table;Swift
func deleteTable(_ table: String!)Parameters
tabletable name
-
Get the Spatial Reference System
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)srs:(GPKGContents *)contents;Swift
func srs(_ contents: GPKGContents!) -> GPKGSpatialReferenceSystem!Parameters
contentscontents
Return Value
srs
-
Get the Geometry Columns
Declaration
Objective-C
- (GPKGGeometryColumns *)geometryColumns:(GPKGContents *)contents;Swift
func geometryColumns(_ contents: GPKGContents!) -> GPKGGeometryColumns!Parameters
contentscontents
Return Value
geometry columns
-
Get the Tile Matrix Set
Declaration
Objective-C
- (GPKGTileMatrixSet *)tileMatrixSet:(GPKGContents *)contents;Swift
func tileMatrixSet(_ contents: GPKGContents!) -> GPKGTileMatrixSet!Parameters
contentscontents
Return Value
tile matrix set
-
Get the Tile Matrix results
Declaration
Objective-C
- (GPKGResultSet *)tileMatrix:(GPKGContents *)contents;Swift
func tileMatrix(_ contents: GPKGContents!) -> GPKGResultSet!Parameters
contentscontents
Return Value
result set
-
Get the bounding box for all tables in the provided projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxInProjection:(PROJProjection *)projection;Swift
func boundingBox(in projection: PROJProjection!) -> GPKGBoundingBox!Parameters
projectiondesired bounding box projection
Return Value
bounding box
-
Get the bounding box for the table in the table’s projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxOfTable:(NSString *)table;Swift
func boundingBox(ofTable table: String!) -> GPKGBoundingBox!Parameters
tabletable name
Return Value
bounding box
-
Get the bounding box for the table in the provided projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxOfTable:(NSString *)table inProjection:(PROJProjection *)projection;Swift
func boundingBox(ofTable table: String!, in projection: PROJProjection!) -> GPKGBoundingBox!Parameters
tabletable name
projectiondesired bounding box projection
Return Value
bounding box
-
Get a bounding box in the provided projection
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBoxOfContents:(GPKGContents *)contents inProjection:(PROJProjection *)projection;Swift
func boundingBox(of contents: GPKGContents!, in projection: PROJProjection!) -> GPKGBoundingBox!Parameters
contentscontents
projectiondesired projection
Return Value
bounding box
View on GitHub
GPKGContentsDao Class Reference