GPKGFeatureTileTableLinker

Objective-C

@interface GPKGFeatureTileTableLinker : GPKGBaseExtension

Swift

class GPKGFeatureTileTableLinker : GPKGBaseExtension

Feature Tile Table linker, used to link feature and tile tables together when the tiles represent the feature data

http://ngageoint.github.io/GeoPackage/docs/extensions/feature-tile-link.html

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage;

    Swift

    init!(geoPackage: GPKGGeoPackage!)

    Parameters

    geoPackage

    GeoPackage

    Return Value

    new feature tile table linker

  • Get the Feature Tile Link DAO

    Declaration

    Objective-C

    - (GPKGFeatureTileLinkDao *)dao;

    Swift

    func dao() -> GPKGFeatureTileLinkDao!

    Return Value

    feature tile link dao

  • Get the extension name

    Declaration

    Objective-C

    - (NSString *)extensionName;

    Swift

    func extensionName() -> String!

    Return Value

    extension name

  • Get the extension definition

    Declaration

    Objective-C

    - (NSString *)extensionDefinition;

    Swift

    func extensionDefinition() -> String!

    Return Value

    extension definition

  • Link a feature and tile table together. Does nothing if already linked.

    Declaration

    Objective-C

    - (void)linkWithFeatureTable:(NSString *)featureTable
                    andTileTable:(NSString *)tileTable;

    Swift

    func link(withFeatureTable featureTable: String!, andTileTable tileTable: String!)

    Parameters

    featureTable

    feature table

    tileTable

    tile table

  • Determine if the feature table is linked to the tile table

    Declaration

    Objective-C

    - (BOOL)isLinkedWithFeatureTable:(NSString *)featureTable
                        andTileTable:(NSString *)tileTable;

    Swift

    func isLinked(withFeatureTable featureTable: String!, andTileTable tileTable: String!) -> Bool

    Parameters

    featureTable

    feature table

    tileTable

    tile table

    Return Value

    true if linked

  • Get the feature and tile table link if it exists

    Declaration

    Objective-C

    - (GPKGFeatureTileLink *)linkFromFeatureTable:(NSString *)featureTable
                                     andTileTable:(NSString *)tileTable;

    Swift

    func link(fromFeatureTable featureTable: String!, andTileTable tileTable: String!) -> GPKGFeatureTileLink!

    Parameters

    featureTable

    feature table

    tileTable

    tile table

    Return Value

    feature tile link

  • Query for feature tile links by feature table

    Declaration

    Objective-C

    - (GPKGResultSet *)queryForFeatureTable:(NSString *)featureTable;

    Swift

    func query(forFeatureTable featureTable: String!) -> GPKGResultSet!

    Parameters

    featureTable

    feature table

    Return Value

    feature tile link results

  • Query for feature tile links by tile table

    Declaration

    Objective-C

    - (GPKGResultSet *)queryForTileTable:(NSString *)tileTable;

    Swift

    func query(forTileTable tileTable: String!) -> GPKGResultSet!

    Parameters

    tileTable

    tile table

    Return Value

    feature tile link results

  • Delete the feature tile table link

    Declaration

    Objective-C

    - (BOOL)deleteLinkWithFeatureTable:(NSString *)featureTable
                          andTileTable:(NSString *)tileTable;

    Swift

    func deleteLink(withFeatureTable featureTable: String!, andTileTable tileTable: String!) -> Bool

    Parameters

    featureTable

    feature table

    tileTable

    tile table

    Return Value

    true if deleted

  • Delete the feature tile table links for the feature or tile table

    Declaration

    Objective-C

    - (int)deleteLinksWithTable:(NSString *)table;

    Swift

    func deleteLinks(withTable table: String!) -> Int32

    Parameters

    table

    feature or tile table

    Return Value

    links deleted

  • Check if has extension

    Declaration

    Objective-C

    - (BOOL)has;

    Swift

    func has() -> Bool

    Return Value

    true if has extension

  • Get the extension

    Declaration

    Objective-C

    - (GPKGExtensions *)extension;

    Swift

    func `extension`() -> GPKGExtensions!

    Return Value

    extensions object or null if one does not exist

  • Get a Feature Tile Link DAO

    Declaration

    Objective-C

    - (GPKGFeatureTileLinkDao *)featureTileLinkDao;

    Swift

    func featureTileLinkDao() -> GPKGFeatureTileLinkDao!

    Return Value

    feature tile link dao

  • Get a Feature Tile Link DAO

    Declaration

    Objective-C

    + (GPKGFeatureTileLinkDao *)featureTileLinkDaoWithGeoPackage:
        (GPKGGeoPackage *)geoPackage;

    Swift

    class func featureTileLinkDao(with geoPackage: GPKGGeoPackage!) -> GPKGFeatureTileLinkDao!

    Parameters

    geoPackage

    GeoPackage

    Return Value

    feature tile link dao

  • Get a Feature Tile Link DAO

    Declaration

    Objective-C

    + (GPKGFeatureTileLinkDao *)featureTileLinkDaoWithDatabase:
        (GPKGConnection *)database;

    Swift

    class func featureTileLinkDao(withDatabase database: GPKGConnection!) -> GPKGFeatureTileLinkDao!

    Parameters

    database

    database connection

    Return Value

    feature tile link dao

  • Create the Feature Tile Link Table if it does not exist

    Declaration

    Objective-C

    - (BOOL)createFeatureTileLinkTable;

    Swift

    func createFeatureTileLinkTable() -> Bool

    Return Value

    true if created

  • Pull the the current result set feature tile link out

    Declaration

    Objective-C

    - (GPKGFeatureTileLink *)linkFromResultSet:(GPKGResultSet *)results;

    Swift

    func link(from results: GPKGResultSet!) -> GPKGFeatureTileLink!

    Parameters

    results

    result set

    Return Value

    feature tile link

  • Query for the tile table names linked to a feature table

    Declaration

    Objective-C

    - (NSArray<NSString *> *)tileTablesForFeatureTable:(NSString *)featureTable;

    Swift

    func tileTables(forFeatureTable featureTable: String!) -> [String]!

    Parameters

    featureTable

    feature table

    Return Value

    tiles tables

  • Query for the feature table names linked to a tile table

    Declaration

    Objective-C

    - (NSArray<NSString *> *)featureTablesForTileTable:(NSString *)tileTable;

    Swift

    func featureTables(forTileTable tileTable: String!) -> [String]!

    Parameters

    tileTable

    tile table

    Return Value

    feature tables

  • Query for the tile tables linked to a feature table and return tile DAOs to those tables

    Declaration

    Objective-C

    - (NSArray<GPKGTileDao *> *)tileDaosForFeatureTable:(NSString *)featureTable;

    Swift

    func tileDaos(forFeatureTable featureTable: String!) -> [GPKGTileDao]!

    Parameters

    featureTable

    feature table

    Return Value

    tiles DAOs

  • Query for the feature tables linked to a tile table and return feature DAOs to those tables

    Declaration

    Objective-C

    - (NSArray<GPKGFeatureDao *> *)featureDaosForTileTable:(NSString *)tileTable;

    Swift

    func featureDaos(forTileTable tileTable: String!) -> [GPKGFeatureDao]!

    Parameters

    tileTable

    tile table

    Return Value

    feature DAOs