GPKGUrlTileGenerator

Objective-C

@interface GPKGUrlTileGenerator : GPKGTileGenerator

Swift

class GPKGUrlTileGenerator : GPKGTileGenerator

Creates a set of tiles within a GeoPackage by downloading the tiles from a URL

  • tms

    TMS URL flag, when true x,y,z converted to TMS when requesting the tile

    Declaration

    Objective-C

    @property (nonatomic) BOOL tms;

    Swift

    var tms: Bool { get set }
  • The HTTP request method, when nil default is “GET”

    Declaration

    Objective-C

    @property (nonatomic) NSString *httpMethod;

    Swift

    var httpMethod: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                          andTableName:(NSString *)tableName
                            andTileUrl:(NSString *)tileUrl
                        andBoundingBox:(GPKGBoundingBox *)boundingBox
                         andProjection:(PROJProjection *)projection;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andTableName tableName: String!, andTileUrl tileUrl: String!, andBoundingBox boundingBox: GPKGBoundingBox!, andProjection projection: PROJProjection!)

    Parameters

    geoPackage

    GeoPackage

    tableName

    table name

    tileUrl

    tile URL

    boundingBox

    tiles bounding box

    projection

    tiles projection

    Return Value

    new url tile generator

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                          andTableName:(NSString *)tableName
                            andTileUrl:(NSString *)tileUrl
                               andZoom:(int)zoomLevel
                        andBoundingBox:(GPKGBoundingBox *)boundingBox
                         andProjection:(PROJProjection *)projection;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andTableName tableName: String!, andTileUrl tileUrl: String!, andZoom zoomLevel: Int32, andBoundingBox boundingBox: GPKGBoundingBox!, andProjection projection: PROJProjection!)

    Parameters

    geoPackage

    GeoPackage

    tableName

    table name

    tileUrl

    tile URL

    zoomLevel

    zoom level

    boundingBox

    tiles bounding box

    projection

    tiles projection

    Return Value

    new url tile generator

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                          andTableName:(NSString *)tableName
                            andTileUrl:(NSString *)tileUrl
                            andMinZoom:(int)minZoom
                            andMaxZoom:(int)maxZoom
                        andBoundingBox:(GPKGBoundingBox *)boundingBox
                         andProjection:(PROJProjection *)projection;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andTableName tableName: String!, andTileUrl tileUrl: String!, andMinZoom minZoom: Int32, andMaxZoom maxZoom: Int32, andBoundingBox boundingBox: GPKGBoundingBox!, andProjection projection: PROJProjection!)

    Parameters

    geoPackage

    GeoPackage

    tableName

    table name

    tileUrl

    tile URL

    minZoom

    min zoom

    maxZoom

    max zoom

    boundingBox

    tiles bounding box

    projection

    tiles projection

    Return Value

    new url tile generator

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage
                          andTableName:(NSString *)tableName
                            andTileUrl:(NSString *)tileUrl
                         andZoomLevels:(NSArray<NSNumber *> *)zoomLevels
                        andBoundingBox:(GPKGBoundingBox *)boundingBox
                         andProjection:(PROJProjection *)projection;

    Swift

    init!(geoPackage: GPKGGeoPackage!, andTableName tableName: String!, andTileUrl tileUrl: String!, andZoomLevels zoomLevels: [NSNumber]!, andBoundingBox boundingBox: GPKGBoundingBox!, andProjection projection: PROJProjection!)

    Parameters

    geoPackage

    GeoPackage

    tableName

    table name

    tileUrl

    tile URL

    zoomLevels

    zoom levels

    boundingBox

    tiles bounding box

    projection

    tiles projection

    Return Value

    new url tile generator

  • Get the HTTP Header fields and field values

    Declaration

    Objective-C

    - (NSDictionary<NSString *, NSArray<NSString *> *> *)httpHeader;

    Swift

    func httpHeader() -> [String : [String]]!

    Return Value

    header map

  • Get the HTTP Header field values

    Declaration

    Objective-C

    - (NSArray<NSString *> *)httpHeaderValuesforField:(NSString *)field;

    Swift

    func httpHeaderValuesforField(_ field: String!) -> [String]!

    Parameters

    field

    field name

    Return Value

    field values

  • Add a HTTP Header field value, appending to any existing values for the field

    Declaration

    Objective-C

    - (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)field;

    Swift

    func addValue(_ value: String!, forHTTPHeaderField field: String!)

    Parameters

    value

    field value

    field

    field name

  • Add HTTP Header field values, appending to any existing values for the field

    Declaration

    Objective-C

    - (void)addValues:(NSArray<NSString *> *)values
        forHTTPHeaderField:(NSString *)field;

    Swift

    func addValues(_ values: [String]!, forHTTPHeaderField field: String!)

    Parameters

    values

    field values

    field

    field name