GPKGTileReprojection
Objective-C
@interface GPKGTileReprojection : NSObject
Swift
class GPKGTileReprojection : NSObject
Tile Reprojection for reprojecting an existing tile table
-
Optional optimization
Declaration
Objective-C
@property (nonatomic, strong) GPKGTileReprojectionOptimize *optimize;
Swift
var optimize: GPKGTileReprojectionOptimize! { get set }
-
Overwrite existing tiles at a zoom level when geographic calculations differ
Declaration
Objective-C
@property (nonatomic) BOOL overwrite;
Swift
var overwrite: Bool { get set }
-
Tile width in pixels
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *tileWidth;
Swift
var tileWidth: NSNumber! { get set }
-
Tile height in pixels
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *tileHeight;
Swift
var tileHeight: NSNumber! { get set }
-
Progress callbacks
Declaration
Objective-C
@property (nonatomic, strong) NSObject<GPKGProgress> *progress;
Swift
var progress: (any GPKGProgress)! { get set }
-
Create a Reprojection from a GeoPackage tile table, replacing the existing tiles
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table inProjection:(PROJProjection *)projection;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, in projection: PROJProjection!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
projection
desired projection
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackage
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toTable:(NSString *)reprojectTable inProjection:(PROJProjection *)projection;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, toTable reprojectTable: String!, in projection: PROJProjection!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
reprojectTable
new reprojected tile table
projection
desired projection
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toGeoPackage: (GPKGGeoPackage *)reprojectGeoPackage andTable:(NSString *)reprojectTable inProjection:(PROJProjection *)projection;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectGeoPackage: GPKGGeoPackage!, andTable reprojectTable: String!, in projection: PROJProjection!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
reprojectGeoPackage
GeoPackage for reprojected tile table
reprojectTable
new reprojected tile table
projection
desired projection
Return Value
tile reprojection
-
Create a Reprojection from a tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table inProjection:(PROJProjection *)projection;
Swift
class func create(with tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTable table: String!, in projection: PROJProjection!) -> GPKGTileReprojection!
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
table
new reprojected tile table
projection
desired projection
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectTileDao: GPKGTileDao!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
reprojectTileDao
reprojection tile DAO
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithTileDao:(GPKGTileDao *)tileDao toTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func create(with tileDao: GPKGTileDao!, to reprojectTileDao: GPKGTileDao!) -> GPKGTileReprojection!
Parameters
tileDao
tile DAO
reprojectTileDao
reprojection tile DAO
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toGeoPackage: (GPKGGeoPackage *)reprojectGeoPackage andTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectGeoPackage: GPKGGeoPackage!, andTileDao reprojectTileDao: GPKGTileDao!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
reprojectGeoPackage
GeoPackage for reprojected tile table
reprojectTileDao
reprojection tile DAO
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func create(with tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTileDao reprojectTileDao: GPKGTileDao!) -> GPKGTileReprojection!
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
reprojectTileDao
reprojection tile DAO
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table, replacing the existing tiles
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andOptimize: (GPKGTileReprojectionOptimize *)optimize;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
optimize
desired optimization
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table within the GeoPackage
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toTable:(NSString *)reprojectTable andOptimize: (GPKGTileReprojectionOptimize *)optimize;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, toTable reprojectTable: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
reprojectTable
new reprojected tile table
optimize
desired optimization
Return Value
tile reprojection
-
Create a Reprojection from a GeoPackage tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (GPKGTileReprojection *) createWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toGeoPackage:(GPKGGeoPackage *)reprojectGeoPackage andTable:(NSString *)reprojectTable andOptimize:(GPKGTileReprojectionOptimize *)optimize;
Swift
class func create(with geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectGeoPackage: GPKGGeoPackage!, andTable reprojectTable: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> GPKGTileReprojection!
Parameters
geoPackage
GeoPackage
table
tile table
reprojectGeoPackage
GeoPackage for reprojected tile table
reprojectTable
new reprojected tile table
optimize
desired optimization
Return Value
tile reprojection
-
Create a Reprojection from a tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (GPKGTileReprojection *)createWithTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andOptimize: (GPKGTileReprojectionOptimize *)optimize;
Swift
class func create(with tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTable table: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> GPKGTileReprojection!
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
table
new reprojected tile table
optimize
desired optimization
Return Value
tile reprojection
-
Reproject a GeoPackage tile table, replacing the existing tiles
Declaration
Objective-C
+ (int)reprojectGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table inProjection:(PROJProjection *)projection;
Swift
class func reprojectGeoPackage(_ geoPackage: GPKGGeoPackage!, andTable table: String!, in projection: PROJProjection!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
projection
desired projection
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table within the GeoPackage
Declaration
Objective-C
+ (int)reprojectFromGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toTable:(NSString *)reprojectTable inProjection:(PROJProjection *)projection;
Swift
class func reproject(from geoPackage: GPKGGeoPackage!, andTable table: String!, toTable reprojectTable: String!, in projection: PROJProjection!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
reprojectTable
new reprojected tile table
projection
desired projection
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (int)reprojectFromGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toGeoPackage:(GPKGGeoPackage *)reprojectGeoPackage andTable:(NSString *)reprojectTable inProjection:(PROJProjection *)projection;
Swift
class func reproject(from geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectGeoPackage: GPKGGeoPackage!, andTable reprojectTable: String!, in projection: PROJProjection!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
reprojectGeoPackage
GeoPackage for reprojected tile table
reprojectTable
new reprojected tile table
projection
desired projection
Return Value
created tiles
-
Reproject a tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (int)reprojectFromTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table inProjection:(PROJProjection *)projection;
Swift
class func reproject(from tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTable table: String!, in projection: PROJProjection!) -> Int32
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
table
new reprojected tile table
projection
desired projection
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (int)reprojectFromGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func reproject(from geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectTileDao: GPKGTileDao!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
reprojectTileDao
reprojection tile DAO
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (int)reprojectFromTileDao:(GPKGTileDao *)tileDao toTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func reproject(from tileDao: GPKGTileDao!, to reprojectTileDao: GPKGTileDao!) -> Int32
Parameters
tileDao
tile DAO
reprojectTileDao
reprojection tile DAO
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (int)reprojectFromGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toGeoPackage:(GPKGGeoPackage *)reprojectGeoPackage andTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func reproject(from geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectGeoPackage: GPKGGeoPackage!, andTileDao reprojectTileDao: GPKGTileDao!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
reprojectGeoPackage
GeoPackage for reprojected tile table
reprojectTileDao
reprojection tile DAO
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table
Declaration
Objective-C
+ (int)reprojectFromTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
class func reproject(from tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTileDao reprojectTileDao: GPKGTileDao!) -> Int32
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
reprojectTileDao
reprojection tile DAO
Return Value
created tiles
-
Reproject a GeoPackage tile table, replacing the existing tiles
Declaration
Objective-C
+ (int)reprojectGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andOptimize:(GPKGTileReprojectionOptimize *)optimize;
Swift
class func reprojectGeoPackage(_ geoPackage: GPKGGeoPackage!, andTable table: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
optimize
desired optimization
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table within the GeoPackage
Declaration
Objective-C
+ (int)reprojectFromGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toTable:(NSString *)reprojectTable andOptimize:(GPKGTileReprojectionOptimize *)optimize;
Swift
class func reproject(from geoPackage: GPKGGeoPackage!, andTable table: String!, toTable reprojectTable: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
reprojectTable
new reprojected tile table
optimize
desired optimization
Return Value
created tiles
-
Reproject a GeoPackage tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (int)reprojectFromGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table toGeoPackage:(GPKGGeoPackage *)reprojectGeoPackage andTable:(NSString *)reprojectTable andOptimize:(GPKGTileReprojectionOptimize *)optimize;
Swift
class func reproject(from geoPackage: GPKGGeoPackage!, andTable table: String!, to reprojectGeoPackage: GPKGGeoPackage!, andTable reprojectTable: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> Int32
Parameters
geoPackage
GeoPackage
table
tile table
reprojectGeoPackage
GeoPackage for reprojected tile table
reprojectTable
new reprojected tile table
optimize
desired optimization
Return Value
created tiles
-
Reproject a tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
+ (int)reprojectFromTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andOptimize:(GPKGTileReprojectionOptimize *)optimize;
Swift
class func reproject(from tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTable table: String!, andOptimize optimize: GPKGTileReprojectionOptimize!) -> Int32
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
table
new reprojected tile table
optimize
desired optimization
Return Value
created tiles
-
Initialize, reproject a tile table to a new tile table in a specified GeoPackage
Declaration
Objective-C
- (instancetype)initWithTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table inProjection:(PROJProjection *)projection;
Swift
init!(tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTable table: String!, in projection: PROJProjection!)
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
table
new reprojected tile table
projection
desired projection
Return Value
tile reprojection
-
Initialize, reproject a GeoPackage tile table to a new tile table
Declaration
Objective-C
- (instancetype)initWithTileDao:(GPKGTileDao *)tileDao toTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
init!(tileDao: GPKGTileDao!, to reprojectTileDao: GPKGTileDao!)
Parameters
tileDao
tile DAO
reprojectTileDao
reprojection tile DAO
Return Value
tile reprojection
-
Initialize, reproject a GeoPackage tile table to a new tile table
Declaration
Objective-C
- (instancetype)initWithTileDao:(GPKGTileDao *)tileDao toGeoPackage:(GPKGGeoPackage *)geoPackage andTileDao:(GPKGTileDao *)reprojectTileDao;
Swift
init!(tileDao: GPKGTileDao!, to geoPackage: GPKGGeoPackage!, andTileDao reprojectTileDao: GPKGTileDao!)
Parameters
tileDao
tile DAO
geoPackage
GeoPackage for reprojected tile table
reprojectTileDao
reprojection tile DAO
Return Value
tile reprojection
-
Get the zoom level configurations
Declaration
Objective-C
- (NSMutableDictionary<NSNumber *, GPKGTileReprojectionZoom *> *)zoomConfigs;
Swift
func zoomConfigs() -> NSMutableDictionary!
Return Value
zoom configs
-
Get the zoom level configuration for a zoom level
Declaration
Objective-C
- (GPKGTileReprojectionZoom *)configForZoom:(int)zoom;
Swift
func config(forZoom zoom: Int32) -> GPKGTileReprojectionZoom!
Parameters
zoom
from zoom level
Return Value
zoom config
-
Get the zoom level configuration or create new configuration for a zoom level
Declaration
Objective-C
- (GPKGTileReprojectionZoom *)configOrCreateForZoom:(int)zoom;
Swift
func configOrCreate(forZoom zoom: Int32) -> GPKGTileReprojectionZoom!
Parameters
zoom
from zoom level
Return Value
zoom config
-
Set a zoom level configuration for a zoom level
Declaration
Objective-C
- (void)setConfig:(GPKGTileReprojectionZoom *)config;
Swift
func setConfig(_ config: GPKGTileReprojectionZoom!)
Parameters
config
zoom configuration
-
Set a reprojected to zoom level for a zoom level
Declaration
Objective-C
- (void)setToZoom:(int)toZoom forZoom:(int)zoom;
Swift
func setToZoom(_ toZoom: Int32, forZoom zoom: Int32)
Parameters
toZoom
reprojected zoom level
zoom
zoom level
-
Get a reprojected to zoom level from a zoom level, defaults as the zoom level if not set
Declaration
Objective-C
- (int)toZoomForZoom:(int)zoom;
Swift
func toZoom(forZoom zoom: Int32) -> Int32
Parameters
zoom
zoom level
Return Value
reprojected to zoom level
-
Set a reprojected tile width for a zoom level
Declaration
Objective-C
- (void)setTileWidth:(int)tileWidth forZoom:(int)zoom;
Swift
func setTileWidth(_ tileWidth: Int32, forZoom zoom: Int32)
Parameters
tileWidth
reprojected tile width
zoom
zoom level
-
Get a reprojected tile width from a zoom level
Declaration
Objective-C
- (NSNumber *)tileWidthForZoom:(int)zoom;
Swift
func tileWidth(forZoom zoom: Int32) -> NSNumber!
Parameters
zoom
zoom level
Return Value
reprojected tile width
-
Set a reprojected tile height for a zoom level
Declaration
Objective-C
- (void)setTileHeight:(int)tileHeight forZoom:(int)zoom;
Swift
func setTileHeight(_ tileHeight: Int32, forZoom zoom: Int32)
Parameters
tileHeight
reprojected tile height
zoom
zoom level
-
Get a reprojected tile height from a zoom level
Declaration
Objective-C
- (NSNumber *)tileHeightForZoom:(int)zoom;
Swift
func tileHeight(forZoom zoom: Int32) -> NSNumber!
Parameters
zoom
zoom level
Return Value
reprojected tile height
-
Set a reprojected matrix width for a zoom level
Declaration
Objective-C
- (void)setMatrixWidth:(int)matrixWidth forZoom:(int)zoom;
Swift
func setMatrixWidth(_ matrixWidth: Int32, forZoom zoom: Int32)
Parameters
matrixWidth
reprojected matrix width
zoom
zoom level
-
Get a reprojected matrix width from a zoom level
Declaration
Objective-C
- (NSNumber *)matrixWidthForZoom:(int)zoom;
Swift
func matrixWidth(forZoom zoom: Int32) -> NSNumber!
Parameters
zoom
zoom level
Return Value
reprojected matrix width
-
Set a reprojected matrix height for a zoom level
Declaration
Objective-C
- (void)setMatrixHeight:(int)matrixHeight forZoom:(int)zoom;
Swift
func setMatrixHeight(_ matrixHeight: Int32, forZoom zoom: Int32)
Parameters
matrixHeight
reprojected matrix height
zoom
zoom level
-
Get a reprojected matrix height from a zoom level
Declaration
Objective-C
- (NSNumber *)matrixHeightForZoom:(int)zoom;
Swift
func matrixHeight(forZoom zoom: Int32) -> NSNumber!
Parameters
zoom
zoom level
Return Value
reprojected matrix height
-
Reproject the tile table
Declaration
Objective-C
- (int)reproject;
Swift
func reproject() -> Int32
Return Value
created tiles
-
Reproject the tile table within the zoom range
Declaration
Objective-C
- (int)reprojectWithMinZoom:(int)minZoom andMaxZoom:(int)maxZoom;
Swift
func reproject(withMinZoom minZoom: Int32, andMaxZoom maxZoom: Int32) -> Int32
Parameters
minZoom
min zoom
maxZoom
max zoom
Return Value
created tiles
-
Reproject the tile table for the zoom levels, ordered numerically lowest to highest
Declaration
Objective-C
- (int)reprojectWithZooms:(NSArray<NSNumber *> *)zooms;
Swift
func reproject(withZooms zooms: [NSNumber]!) -> Int32
Parameters
zooms
zoom levels, ordered lowest to highest
Return Value
created tiles
-
Reproject the tile table for the zoom level
Declaration
Objective-C
- (int)reprojectWithZoom:(int)zoom;
Swift
func reproject(withZoom zoom: Int32) -> Int32
Parameters
zoom
zoom level
Return Value
created tiles