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() -> Int32

    Return 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

    database

    GeoPackage 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!) -> Int32

    Parameters

    database

    GeoPackage 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

    database

    GeoPackage database

    table

    table 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!) -> Int32

    Parameters

    database

    GeoPackage database

    table

    table 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

    database

    GeoPackage database

    table

    table name

    featureId

    feature 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!) -> Int32

    Parameters

    database

    GeoPackage database

    table

    table name

    featureId

    feature 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

    mapShape

    map shape

    featureId

    feature id

    database

    GeoPackage database

    table

    table 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

    mapShape

    map shape

    featureId

    feature id

    database

    GeoPackage database

    table

    table 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!) -> Bool

    Parameters

    featureId

    feature id

    database

    GeoPackage database

    table

    table name

  • Remove all map shapes from the map

    Declaration

    Objective-C

    - (int)removeShapesFromMapView:(MKMapView *)mapView;

    Swift

    func remove(from mapView: MKMapView!) -> Int32

    Parameters

    mapView

    map 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) -> Int32

    Parameters

    mapView

    map view

    excludedType

    Map 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>!) -> Int32

    Parameters

    mapView

    map view

    excludedTypes

    Map 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!) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage 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) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage database

    excludedType

    Map 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>!) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage database

    excludedTypes

    Map 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!) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage database

    table

    table 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) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage database

    table

    table name

    excludedType

    Map 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>!) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage database

    table

    table name

    excludedTypes

    Map 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!) -> Int32

    Parameters

    mapView

    map 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!) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage 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!) -> Int32

    Parameters

    mapView

    map view

    boundingBox

    bounding box

    database

    GeoPackage 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!) -> Int32

    Parameters

    mapView

    map view

    database

    GeoPackage database

    table

    table 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!) -> Int32

    Parameters

    mapView

    map view

    boundingBox

    bounding box

    database

    GeoPackage database

    table

    table 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!) -> Bool

    Parameters

    database

    GeoPackage database

    table

    table name

    featureId

    feature id

    Return Value

    true if removed

  • Clear

    Declaration

    Objective-C

    - (void)clear;

    Swift

    func clear()