GPKGFeaturePreview

Objective-C

@interface GPKGFeaturePreview : NSObject

/**
 * Manual bounding box query flag for non indexed and empty contents bounds
 * feature tables
 */
@property (nonatomic) BOOL manual;

/**
 * Buffer percentage for drawing empty non features edges (greater than or equal to 0.0 and less than 0.5)
 */
@property (nonatomic) double bufferPercentage;

/**
 * Where clause
 */
@property (nonatomic, strong) NSString *where;

/**
 * Where clause arguments
 */
@property (nonatomic, strong) NSArray *whereArgs;

/**
 * Query feature limit
 */
@property (nonatomic, strong) NSNumber *limit;

/**
 *  Initialize
 *
 *  @param geoPackage  GeoPackage
 *  @param featureTable feature table
 *
 *  @return new feature tile context
 */
-(instancetype) initWithGeoPackage: (GPKGGeoPackage *) geoPackage andTableName: (NSString *) featureTable;

/**
 *  Initialize
 *
 *  @param geoPackage  GeoPackage
 *  @param featureDao feature DAO
 *
 *  @return new feature tile context
 */
-(instancetype) initWithGeoPackage: (GPKGGeoPackage *) geoPackage andFeatureDao: (GPKGFeatureDao *) featureDao;

/**
 *  Initialize
 *
 *  @param geoPackage  GeoPackage
 *  @param featureTiles feature tiles
 *
 *  @return new feature tile context
 */
-(instancetype) initWithGeoPackage: (GPKGGeoPackage *) geoPackage andFeatureTiles: (GPKGFeatureTiles *) featureTiles;

/**
 * Get the GeoPackage
 *
 * @return GeoPackage
 */
-(GPKGGeoPackage *) geoPackage;

/**
 * Get the feature tiles
 *
 * @return feature tiles
 */
-(GPKGFeatureTiles *) featureTiles;

/**
 * Get the query columns
 *
 * @return columns
 */
-(NSSet<NSString *> *) columns;

/**
 * Add query columns
 *
 * @param columns columns
 */
-(void) addColumns: (NSArray<NSString *> *) columns;

/**
 * Add a query column
 *
 * @param column column
 */
-(void) addColumn: (NSString *) column;

/**
 * Append to the where clause
 *
 * @param where where
 */
-(void) appendWhere: (NSString *) where;

/**
 * Draw a preview image
 *
 * @return preview image
 */
-(UIImage *) draw;

/**
 * Close the feature tiles connection
 */
-(void) close;

@end

Swift

class GPKGFeaturePreview : NSObject

Undocumented

  • Manual bounding box query flag for non indexed and empty contents bounds feature tables

    Declaration

    Objective-C

    @property (nonatomic) BOOL manual;

    Swift

    var manual: Bool { get set }
  • Buffer percentage for drawing empty non features edges (greater than or equal to 0.0 and less than 0.5)

    Declaration

    Objective-C

    @property (nonatomic) double bufferPercentage;

    Swift

    var bufferPercentage: Double { get set }
  • Where clause

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *where;

    Swift

    var `where`: String! { get set }
  • Where clause arguments

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray *whereArgs;

    Swift

    var whereArgs: [Any]! { get set }
  • Query feature limit

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *limit;

    Swift

    var limit: NSNumber! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                          andTableName:(NSString *)featureTable;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andTableName featureTable: String!)

    Parameters

    geoPackage

    GeoPackage

    featureTable

    feature table

    Return Value

    new feature tile context

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                         andFeatureDao:(GPKGFeatureDao *)featureDao;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andFeatureDao featureDao: GPKGFeatureDao!)

    Parameters

    geoPackage

    GeoPackage

    featureDao

    feature DAO

    Return Value

    new feature tile context

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                       andFeatureTiles:(GPKGFeatureTiles *)featureTiles;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andFeatureTiles featureTiles: GPKGFeatureTiles!)

    Parameters

    geoPackage

    GeoPackage

    featureTiles

    feature tiles

    Return Value

    new feature tile context

  • Get the GeoPackage

    Declaration

    Objective-C

    - (GPKGGeoPackage *)geoPackage;

    Swift

    func geoPackage() -> GPKGGeoPackage!

    Return Value

    GeoPackage

  • Get the feature tiles

    Declaration

    Objective-C

    - (GPKGFeatureTiles *)featureTiles;

    Swift

    func featureTiles() -> GPKGFeatureTiles!

    Return Value

    feature tiles

  • Get the query columns

    Declaration

    Objective-C

    - (NSSet<NSString *> *)columns;

    Swift

    func columns() -> Set<String>!

    Return Value

    columns

  • Add query columns

    Declaration

    Objective-C

    - (void)addColumns:(NSArray<NSString *> *)columns;

    Swift

    func addColumns(_ columns: [String]!)

    Parameters

    columns

    columns

  • Add a query column

    Declaration

    Objective-C

    - (void)addColumn:(NSString *)column;

    Swift

    func addColumn(_ column: String!)

    Parameters

    column

    column

  • Append to the where clause

    Declaration

    Objective-C

    - (void)appendWhere:(NSString *)where;

    Swift

    func appendWhere(_ where: String!)

    Parameters

    where

    where

  • Draw a preview image

    Declaration

    Objective-C

    - (id)draw;

    Swift

    func draw() -> Any!

    Return Value

    preview image

  • Close the feature tiles connection

    Declaration

    Objective-C

    - (void)close;

    Swift

    func close()