GPKGTileCreator
Objective-C
@interface GPKGTileCreator : NSObject
/**
* Tile Scaling options
*/
@property (nonatomic, strong) GPKGTileScaling *scaling;
/**
* Initializer, specified tile size and projection
*
* @param tileDao tile dao
* @param width requested width
* @param height requested height
* @param requestProjection requested projection
*
* @return new instance
*/
-(instancetype) initWithTileDao: (GPKGTileDao *) tileDao andWidth: (NSNumber *) width andHeight: (NSNumber *) height andProjection: (PROJProjection *) requestProjection;
/**
* Initializer, tile tables tile size and projection
*
* @param tileDao tile dao
*
* @return new instance
*/
-(instancetype) initWithTileDao: (GPKGTileDao *) tileDao;
/**
* Initializer, tile tables projection with specified tile size
*
* @param tileDao tile dao
* @param width requested width
* @param height requested height
*
* @return new instance
*/
-(instancetype) initWithTileDao: (GPKGTileDao *) tileDao andWidth: (NSNumber *) width andHeight: (NSNumber *) height;
/**
* Initializer, tile tables tile size and requested projection
*
* @param tileDao tile dao
* @param requestProjection requested projection
*
* @return new instance
*/
-(instancetype) initWithTileDao: (GPKGTileDao *) tileDao andProjection: (PROJProjection *) requestProjection;
/**
* Get the tile DAO
*
* @return tile DAO
*/
-(GPKGTileDao *) tileDao;
/**
* Get the tile width
*
* @return tile width
*/
-(NSNumber *) width;
/**
* Get the tile height
*
* @return tile height
*/
-(NSNumber *) height;
/**
* Get the tile matrix set
*
* @return tile matrix set
*/
-(GPKGTileMatrixSet *) tileMatrixSet;
/**
* Get the requested projection
*
* @return request projection
*/
-(PROJProjection *) requestProjection;
/**
* Get the tiles projection
*
* @return tiles projection
*/
-(PROJProjection *) tilesProjection;
/**
* Get the tile set bounding box
*
* @return tile set bounding box
*/
-(GPKGBoundingBox *) tileSetBoundingBox;
/**
* Determine if the requested and tile projections are the same
*
* @return true if the same projection
*/
-(BOOL) sameProjection;
/**
* Is the request and tile projection the same unit
*
* @return true if the same
*/
-(BOOL) sameUnit;
/**
* Check if the tile table contains a tile for the request bounding box
*
* @param requestBoundingBox request bounding box in the request projection
*
* @return true if a tile exists
*/
-(BOOL) hasTileWithBoundingBox: (GPKGBoundingBox *) requestBoundingBox;
/**
* Get the tile from the request bounding box in the request projection
*
* @param requestBoundingBox request bounding box in the request projection
*
* @return tile
*/
-(GPKGGeoPackageTile *) tileWithBoundingBox: (GPKGBoundingBox *) requestBoundingBox;
/**
* Get the tile from the request bounding box in the request projection, only from the zoom level
*
* @param requestBoundingBox request bounding box in the request projection
* @param zoomLevel zoom level
*
* @return tile
*/
-(GPKGGeoPackageTile *) tileWithBoundingBox: (GPKGBoundingBox *) requestBoundingBox andZoom: (int) zoomLevel;
@end
Swift
class GPKGTileCreator : NSObject
Undocumented
-
Tile Scaling options
Declaration
Objective-C
@property (nonatomic, strong) GPKGTileScaling *scaling;
Swift
var scaling: GPKGTileScaling! { get set }
-
Initializer, specified tile size and projection
Declaration
Objective-C
- (instancetype)initWithTileDao:(GPKGTileDao *)tileDao andWidth:(NSNumber *)width andHeight:(NSNumber *)height andProjection:(PROJProjection *)requestProjection;
Swift
init!(tileDao: GPKGTileDao!, andWidth width: NSNumber!, andHeight height: NSNumber!, andProjection requestProjection: PROJProjection!)
Parameters
tileDao
tile dao
width
requested width
height
requested height
requestProjection
requested projection
Return Value
new instance
-
Initializer, tile tables tile size and projection
Declaration
Objective-C
- (instancetype)initWithTileDao:(GPKGTileDao *)tileDao;
Swift
init!(tileDao: GPKGTileDao!)
Parameters
tileDao
tile dao
Return Value
new instance
-
Initializer, tile tables projection with specified tile size
Declaration
Objective-C
- (instancetype)initWithTileDao:(GPKGTileDao *)tileDao andWidth:(NSNumber *)width andHeight:(NSNumber *)height;
Swift
init!(tileDao: GPKGTileDao!, andWidth width: NSNumber!, andHeight height: NSNumber!)
Parameters
tileDao
tile dao
width
requested width
height
requested height
Return Value
new instance
-
Initializer, tile tables tile size and requested projection
Declaration
Objective-C
- (instancetype)initWithTileDao:(GPKGTileDao *)tileDao andProjection:(PROJProjection *)requestProjection;
Swift
init!(tileDao: GPKGTileDao!, andProjection requestProjection: PROJProjection!)
Parameters
tileDao
tile dao
requestProjection
requested projection
Return Value
new instance
-
Get the tile DAO
Return Value
tile DAO
-
Get the tile width
Declaration
Objective-C
- (NSNumber *)width;
Swift
func width() -> NSNumber!
Return Value
tile width
-
Get the tile height
Declaration
Objective-C
- (NSNumber *)height;
Swift
func height() -> NSNumber!
Return Value
tile height
-
Get the tile matrix set
Declaration
Objective-C
- (GPKGTileMatrixSet *)tileMatrixSet;
Swift
func tileMatrixSet() -> GPKGTileMatrixSet!
Return Value
tile matrix set
-
Get the requested projection
Declaration
Objective-C
- (PROJProjection *)requestProjection;
Swift
func requestProjection() -> PROJProjection!
Return Value
request projection
-
Get the tiles projection
Declaration
Objective-C
- (PROJProjection *)tilesProjection;
Swift
func tilesProjection() -> PROJProjection!
Return Value
tiles projection
-
Get the tile set bounding box
Declaration
Objective-C
- (GPKGBoundingBox *)tileSetBoundingBox;
Swift
func tileSetBoundingBox() -> GPKGBoundingBox!
Return Value
tile set bounding box
-
Determine if the requested and tile projections are the same
Declaration
Objective-C
- (BOOL)sameProjection;
Swift
func sameProjection() -> Bool
Return Value
true if the same projection
-
Is the request and tile projection the same unit
Declaration
Objective-C
- (BOOL)sameUnit;
Swift
func sameUnit() -> Bool
Return Value
true if the same
-
Check if the tile table contains a tile for the request bounding box
Declaration
Objective-C
- (BOOL)hasTileWithBoundingBox:(GPKGBoundingBox *)requestBoundingBox;
Swift
func hasTile(with requestBoundingBox: GPKGBoundingBox!) -> Bool
Parameters
requestBoundingBox
request bounding box in the request projection
Return Value
true if a tile exists
-
Get the tile from the request bounding box in the request projection
Declaration
Objective-C
- (GPKGGeoPackageTile *)tileWithBoundingBox: (GPKGBoundingBox *)requestBoundingBox;
Swift
func tile(with requestBoundingBox: GPKGBoundingBox!) -> GPKGGeoPackageTile!
Parameters
requestBoundingBox
request bounding box in the request projection
Return Value
tile
-
Get the tile from the request bounding box in the request projection, only from the zoom level
Declaration
Objective-C
- (GPKGGeoPackageTile *)tileWithBoundingBox: (GPKGBoundingBox *)requestBoundingBox andZoom:(int)zoomLevel;
Swift
func tile(with requestBoundingBox: GPKGBoundingBox!, andZoom zoomLevel: Int32) -> GPKGGeoPackageTile!
Parameters
requestBoundingBox
request bounding box in the request projection
zoomLevel
zoom level
Return Value
tile