GPKGGeometryIndexDao
Objective-C
@interface GPKGGeometryIndexDao : GPKGBaseDao
Swift
class GPKGGeometryIndexDao : GPKGBaseDao
Geometry Index Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGGeometryIndexDao *)createWithDatabase:(GPKGConnection *)database;
Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGGeometryIndexDao!
Parameters
database
database connection
Return Value
dao
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDatabase:(GPKGConnection *)database;
Swift
init!(database: GPKGConnection!)
Parameters
database
database connection
Return Value
new geometry index dao
-
Get the Table Index of the Geometry Index
Declaration
Objective-C
- (GPKGTableIndex *)tableIndex:(GPKGGeometryIndex *)geometryIndex;
Swift
func tableIndex(_ geometryIndex: GPKGGeometryIndex!) -> GPKGTableIndex!
Parameters
geometryIndex
geometry index
Return Value
table index
-
Query by table name
Declaration
Objective-C
- (GPKGResultSet *)queryForTableName:(NSString *)tableName;
Swift
func query(forTableName tableName: String!) -> GPKGResultSet!
Parameters
tableName
table name
Return Value
geometry index results
-
Count by table name
Declaration
Objective-C
- (int)countByTableName:(NSString *)tableName;
Swift
func count(byTableName tableName: String!) -> Int32
Parameters
tableName
table name
Return Value
count
-
Populate a new geometry index from an envelope
Declaration
Objective-C
- (GPKGGeometryIndex *)populateWithTableIndex:(GPKGTableIndex *)tableIndex andGeomId:(int)geomId andEnvelope:(SFGeometryEnvelope *)envelope;
Swift
func populate(with tableIndex: GPKGTableIndex!, andGeomId geomId: Int32, andEnvelope envelope: SFGeometryEnvelope!) -> GPKGGeometryIndex!
Parameters
tableIndex
table index
geomId
geometry id
envelope
geometry envelope
Return Value
geometry index