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 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
geoPackageGeoPackage
tableNametable name
tileUrltile URL
boundingBoxtiles bounding box
projectiontiles 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
geoPackageGeoPackage
tableNametable name
tileUrltile URL
zoomLevelzoom level
boundingBoxtiles bounding box
projectiontiles 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
geoPackageGeoPackage
tableNametable name
tileUrltile URL
minZoommin zoom
maxZoommax zoom
boundingBoxtiles bounding box
projectiontiles 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
geoPackageGeoPackage
tableNametable name
tileUrltile URL
zoomLevelszoom levels
boundingBoxtiles bounding box
projectiontiles 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
fieldfield 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
valuefield value
fieldfield 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
valuesfield values
fieldfield name
View on GitHub
GPKGUrlTileGenerator Class Reference