GPKGOAPIFeatureGenerator

Objective-C

@interface GPKGOAPIFeatureGenerator : GPKGFeatureGenerator

Swift

class GPKGOAPIFeatureGenerator : GPKGFeatureGenerator

OGC API Features Generator

  • The optional limit parameter limits the number of items that are presented in the response document.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *limit;

    Swift

    var limit: NSNumber! { get set }
  • Either a date-time or a period string that adheres to RFC 3339

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *time;

    Swift

    var time: String! { get set }
  • Time period string that adheres to RFC 3339

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *period;

    Swift

    var period: String! { get set }
  • Total limit of number of items to request

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *totalLimit;

    Swift

    var totalLimit: NSNumber! { get set }
  • Download attempts per feature request

    Declaration

    Objective-C

    @property (nonatomic) int downloadAttempts;

    Swift

    var downloadAttempts: Int32 { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                              andTable:(NSString *)tableName
                             andServer:(NSString *)server
                                 andId:(NSString *)id;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andTable tableName: String!, andServer server: String!, andId id: String!)

    Parameters

    geoPackage

    GeoPackage

    tableName

    table name

    server

    server url

    id

    collection identifier

    Return Value

    new OAPI feature generator

  • Get the server

    Declaration

    Objective-C

    - (NSString *)server;

    Swift

    func server() -> String!

    Return Value

    server

  • -id

    Get the collection id

    Declaration

    Objective-C

    - (NSString *)id;

    Swift

    func id() -> String!

    Return Value

    collection id

  • Set the time

    Declaration

    Objective-C

    - (void)setTimeFromDate:(NSDate *)time;

    Swift

    func setTimeFrom(_ time: Date!)

    Parameters

    time

    time

  • Set the time period

    Declaration

    Objective-C

    - (void)setPeriodFromDate:(NSDate *)period;

    Swift

    func setPeriodFrom(_ period: Date!)

    Parameters

    period

    period

  • Get the supported projections

    Declaration

    Objective-C

    - (PROJProjections *)projections;

    Swift

    func projections() -> PROJProjections!

    Return Value

    projections

  • Get the supported projections

    Declaration

    Objective-C

    - (PROJProjections *)projectionsForURL:(NSString *)url;

    Swift

    func projections(forURL url: String!) -> PROJProjections!

    Parameters

    url

    URL

    Return Value

    projections

  • Get the supported projections

    Declaration

    Objective-C

    - (PROJProjections *)projectionsForCollection:(OAFCollection *)collection;

    Swift

    func projections(for collection: OAFCollection!) -> PROJProjections!

    Parameters

    collection

    collection

    Return Value

    projections

  • Determine if the projection should be requested from the server

    Declaration

    Objective-C

    - (BOOL)requestProjection:(PROJProjection *)projection;

    Swift

    func requestProjection(_ projection: PROJProjection!) -> Bool

    Parameters

    projection

    projection

    Return Value

    true to request the projection (non null and non default)

  • Check if the projection is a default projection

    Declaration

    Objective-C

    - (BOOL)isDefaultProjection:(PROJProjection *)projection;

    Swift

    func isDefaultProjection(_ projection: PROJProjection!) -> Bool

    Parameters

    projection

    projection

    Return Value

    true if default projection

  • Collection request

    Declaration

    Objective-C

    - (OAFCollection *)collectionRequest;

    Swift

    func collectionRequest() -> OAFCollection!

    Return Value

    collection