GPKGStyleMappingDao
Objective-C
@interface GPKGStyleMappingDao : GPKGUserMappingDao
Swift
class GPKGStyleMappingDao : GPKGUserMappingDao
Style Mapping DAO for reading style mapping data tables
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDao:(GPKGUserCustomDao *)dao;
Swift
init!(dao: GPKGUserCustomDao!)
Parameters
dao
user custom data access object
Return Value
new style mapping dao
-
Get the style mapping table
Declaration
Objective-C
- (GPKGStyleMappingTable *)styleMappingTable;
Swift
func styleMappingTable() -> GPKGStyleMappingTable!
Return Value
style mapping table
-
Get the style mapping row for the current result in the result set
Declaration
Objective-C
- (GPKGStyleMappingRow *)row:(GPKGResultSet *)results;
Swift
func row(_ results: GPKGResultSet!) -> GPKGStyleMappingRow!
Parameters
results
result set
Return Value
style mapping row
-
Create a new style mapping row
Declaration
Objective-C
- (GPKGStyleMappingRow *)newRow;
Swift
func newRow() -> GPKGStyleMappingRow!
Return Value
style mapping row
-
Query for style mappings by base id
Declaration
Objective-C
- (NSArray<GPKGStyleMappingRow *> *)queryByBaseFeatureId:(int)id;
Swift
func query(byBaseFeatureId id: Int32) -> [GPKGStyleMappingRow]!
Parameters
id
base id, feature contents id or feature geometry id
Return Value
style mappings rows
-
Delete by base is and geometry type
Declaration
Objective-C
- (int)deleteByBaseId:(int)id andGeometryType:(enum SFGeometryType)geometryType;
Swift
func delete(byBaseId id: Int32, andGeometryType geometryType: SFGeometryType) -> Int32
Parameters
id
base id
geometryType
geometry type
Return Value
rows deleted