GPKGFeatureShapes
Objective-C
@interface GPKGFeatureShapes : NSObject
Swift
class GPKGFeatureShapes : NSObject
Mantains a collection of feature map shapes by database, table name, and feature id
-
Initializer
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new feature shapes
-
Get the mapping between databases and tables
Declaration
Objective-C
- (NSMutableDictionary<NSString *, NSMutableDictionary *> *)databases;Swift
func databases() -> NSMutableDictionary!Return Value
databases to tables mapping
-
Get the databases count
Declaration
Objective-C
- (int)databasesCount;Swift
func databasesCount() -> Int32Return Value
databases count
-
Get the mapping between tables and feature ids for the database
Declaration
Objective-C
- (NSMutableDictionary<NSString *, NSMutableDictionary *> *)tablesInDatabase: (NSString *)database;Swift
func tables(inDatabase database: String!) -> NSMutableDictionary!Parameters
databaseGeoPackage database
Return Value
tables to feature ids mapping
-
Get the tables count for the database
Declaration
Objective-C
- (int)tablesCountInDatabase:(NSString *)database;Swift
func tablesCount(inDatabase database: String!) -> Int32Parameters
databaseGeoPackage database
Return Value
tables count
-
Get the mapping between feature ids and map shapes for the database and table
Declaration
Objective-C
- (NSMutableDictionary<NSNumber *, GPKGFeatureShape *> *) featureIdsInDatabase:(NSString *)database withTable:(NSString *)table;Swift
func featureIds(inDatabase database: String!, withTable table: String!) -> NSMutableDictionary!Parameters
databaseGeoPackage database
tabletable name
Return Value
feature ids to map shapes mapping
-
Get the feature ids count for the database and table
Declaration
Objective-C
- (int)featureIdsCountInDatabase:(NSString *)database withTable:(NSString *)table;Swift
func featureIdsCount(inDatabase database: String!, withTable table: String!) -> Int32Parameters
databaseGeoPackage database
tabletable name
Return Value
feature ids count
-
Get the feature shape for the database, table, and feature id
Declaration
Objective-C
- (GPKGFeatureShape *)featureShapeInDatabase:(NSString *)database withTable:(NSString *)table withFeatureId:(NSNumber *)featureId;Swift
func featureShape(inDatabase database: String!, withTable table: String!, withFeatureId featureId: NSNumber!) -> GPKGFeatureShape!Parameters
databaseGeoPackage database
tabletable name
featureIdfeature id
Return Value
feature shape
-
Get the feature shape count for the database, table, and feature id
Declaration
Objective-C
- (int)featureShapeCountInDatabase:(NSString *)database withTable:(NSString *)table withFeatureId:(NSNumber *)featureId;Swift
func featureShapeCount(inDatabase database: String!, withTable table: String!, withFeatureId featureId: NSNumber!) -> Int32Parameters
databaseGeoPackage database
tabletable name
featureIdfeature id
Return Value
map shapes count
-
Add a map shape with the feature id, database, and table
Declaration
Objective-C
- (void)addMapShape:(GPKGMapShape *)mapShape withFeatureId:(NSNumber *)featureId toDatabase:(NSString *)database withTable:(NSString *)table;Swift
func add(_ mapShape: GPKGMapShape!, withFeatureId featureId: NSNumber!, toDatabase database: String!, withTable table: String!)Parameters
mapShapemap shape
featureIdfeature id
databaseGeoPackage database
tabletable name
-
Add a map metadata shape with the feature id, database, and table
Declaration
Objective-C
- (void)addMapMetadataShape:(GPKGMapShape *)mapShape withFeatureId:(NSNumber *)featureId toDatabase:(NSString *)database withTable:(NSString *)table;Swift
func addMapMetadataShape(_ mapShape: GPKGMapShape!, withFeatureId featureId: NSNumber!, toDatabase database: String!, withTable table: String!)Parameters
mapShapemap shape
featureIdfeature id
databaseGeoPackage database
tabletable name
-
Check if map shapes exist for the feature id, database, and table
Declaration
Objective-C
- (BOOL)existsWithFeatureId:(NSNumber *)featureId inDatabase:(NSString *)database withTable:(NSString *)table;Swift
func exists(withFeatureId featureId: NSNumber!, inDatabase database: String!, withTable table: String!) -> BoolParameters
featureIdfeature id
databaseGeoPackage database
tabletable name
-
Remove all map shapes from the map
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView;Swift
func remove(from mapView: MKMapView!) -> Int32Parameters
mapViewmap view
Return Value
count of removed features
-
Remove all map shapes from the map, excluding shapes with the excluded type
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView withExclusion:(enum GPKGMapShapeType)excludedType;Swift
func remove(from mapView: MKMapView!, withExclusion excludedType: GPKGMapShapeType) -> Int32Parameters
mapViewmap view
excludedTypeMap Shape Type to exclude from map removal
Return Value
count of removed features
-
Remove all map shapes from the map, excluding shapes with the excluded types
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView withExclusions:(NSSet<NSNumber *> *)excludedTypes;Swift
func remove(from mapView: MKMapView!, withExclusions excludedTypes: Set<NSNumber>!) -> Int32Parameters
mapViewmap view
excludedTypesMap Shape Types to exclude from map removal
Return Value
count of removed features
-
Remove all map shapes in the database from the map
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView inDatabase:(NSString *)database;Swift
func remove(from mapView: MKMapView!, inDatabase database: String!) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
Return Value
count of removed features
-
Remove all map shapes in the database from the map, excluding shapes with the excluded type
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView inDatabase:(NSString *)database withExclusion:(enum GPKGMapShapeType)excludedType;Swift
func remove(from mapView: MKMapView!, inDatabase database: String!, withExclusion excludedType: GPKGMapShapeType) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
excludedTypeMap Shape Type to exclude from map removal
Return Value
count of removed features
-
Remove all map shapes in the database from the map, excluding shapes with the excluded types
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView inDatabase:(NSString *)database withExclusions:(NSSet<NSNumber *> *)excludedTypes;Swift
func remove(from mapView: MKMapView!, inDatabase database: String!, withExclusions excludedTypes: Set<NSNumber>!) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
excludedTypesMap Shape Types to exclude from map removal
Return Value
count of removed features
-
Remove all map shapes in the database and table from the map
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView inDatabase:(NSString *)database withTable:(NSString *)table;Swift
func remove(from mapView: MKMapView!, inDatabase database: String!, withTable table: String!) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
tabletable name
Return Value
count of removed features
-
Remove all map shapes in the database and table from the map, excluding shapes with the excluded type
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView inDatabase:(NSString *)database withTable:(NSString *)table withExclusion:(enum GPKGMapShapeType)excludedType;Swift
func remove(from mapView: MKMapView!, inDatabase database: String!, withTable table: String!, withExclusion excludedType: GPKGMapShapeType) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
tabletable name
excludedTypeMap Shape Type to exclude from map removal
Return Value
count of removed features
-
Remove all map shapes in the database and table from the map, excluding shapes with the excluded types
Declaration
Objective-C
- (int)removeShapesFromMapView:(MKMapView *)mapView inDatabase:(NSString *)database withTable:(NSString *)table withExclusions:(NSSet<NSNumber *> *)excludedTypes;Swift
func remove(from mapView: MKMapView!, inDatabase database: String!, withTable table: String!, withExclusions excludedTypes: Set<NSNumber>!) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
tabletable name
excludedTypesMap Shape Types to exclude from map removal
Return Value
count of removed features
-
Remove all map shapes that are not visible in the map view
Declaration
Objective-C
- (int)removeShapesNotWithinMapView:(MKMapView *)mapView;Swift
func removeNot(within mapView: MKMapView!) -> Int32Parameters
mapViewmap view
Return Value
count of removed features
-
Remove all map shapes in the database that are not visible in the map view
Declaration
Objective-C
- (int)removeShapesNotWithinMapView:(MKMapView *)mapView inDatabase:(NSString *)database;Swift
func removeNot(within mapView: MKMapView!, inDatabase database: String!) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
Return Value
count of removed features
-
Remove all map shapes in the database that are not visible in the bounding box
Declaration
Objective-C
- (int)removeShapesNotWithinMapView:(MKMapView *)mapView withBoundingBox:(GPKGBoundingBox *)boundingBox inDatabase:(NSString *)database;Swift
func removeNot(within mapView: MKMapView!, with boundingBox: GPKGBoundingBox!, inDatabase database: String!) -> Int32Parameters
mapViewmap view
boundingBoxbounding box
databaseGeoPackage database
Return Value
count of removed features
-
Remove all map shapes in the database and table that are not visible in the map view
Declaration
Objective-C
- (int)removeShapesNotWithinMapView:(MKMapView *)mapView inDatabase:(NSString *)database withTable:(NSString *)table;Swift
func removeNot(within mapView: MKMapView!, inDatabase database: String!, withTable table: String!) -> Int32Parameters
mapViewmap view
databaseGeoPackage database
tabletable name
Return Value
count of removed features
-
Remove all map shapes in the database and table that are not visible in the bounding box
Declaration
Objective-C
- (int)removeShapesNotWithinMapView:(MKMapView *)mapView withBoundingBox:(GPKGBoundingBox *)boundingBox inDatabase:(NSString *)database withTable:(NSString *)table;Swift
func removeNot(within mapView: MKMapView!, with boundingBox: GPKGBoundingBox!, inDatabase database: String!, withTable table: String!) -> Int32Parameters
mapViewmap view
boundingBoxbounding box
databaseGeoPackage database
tabletable name
Return Value
count of removed features
-
Remove the feature shape from the database and table
Declaration
Objective-C
- (BOOL)removeFeatureShapeFromMapView:(MKMapView *)mapView inDatabase:(NSString *)database withTable:(NSString *)table withFeatureId:(NSNumber *)featureId;Swift
func removeFeatureShape(from mapView: MKMapView!, inDatabase database: String!, withTable table: String!, withFeatureId featureId: NSNumber!) -> BoolParameters
databaseGeoPackage database
tabletable name
featureIdfeature id
Return Value
true if removed
-
Clear
Declaration
Objective-C
- (void)clear;Swift
func clear()
View on GitHub
GPKGFeatureShapes Class Reference