GPKGDgiwgUtils
Objective-C
@interface GPKGDgiwgUtils : NSObject
Swift
class GPKGDgiwgUtils : NSObject
DGIWG (Defence Geospatial Information Working Group) GeoPackage utilities
-
+createTilesWithGeoPackage:
andTable: andIdentifier: andDescription: andInformativeBounds: andSRS: andExtentBounds: Create tiles table
Declaration
Objective-C
+ (GPKGTileMatrixSet *) createTilesWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andIdentifier:(NSString *)identifier andDescription:(NSString *)description andInformativeBounds:(GPKGBoundingBox *)informativeBounds andSRS:(GPKGSpatialReferenceSystem *)srs andExtentBounds:(GPKGBoundingBox *)extentBounds;
Swift
class func createTiles(with geoPackage: GPKGGeoPackage!, andTable table: String!, andIdentifier identifier: String!, andDescription description: String!, andInformativeBounds informativeBounds: GPKGBoundingBox!, andSRS srs: GPKGSpatialReferenceSystem!, andExtentBounds extentBounds: GPKGBoundingBox!) -> GPKGTileMatrixSet!
Parameters
geoPackage
GeoPackage
table
table name
identifier
contents identifier
description
contents description
informativeBounds
informative contents bounds
srs
spatial reference system
extentBounds
crs extent bounds
Return Value
created tile matrix set
-
Create tile matrices for zoom levels
Declaration
Objective-C
+ (void)createTileMatricesWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andBounds:(GPKGBoundingBox *)boundingBox andMinZoom:(int)minZoom andMaxZoom:(int)maxZoom andWidth:(int)matrixWidth andHeight:(int)matrixHeight;
Swift
class func createTileMatrices(with geoPackage: GPKGGeoPackage!, andTable table: String!, andBounds boundingBox: GPKGBoundingBox!, andMinZoom minZoom: Int32, andMaxZoom maxZoom: Int32, andWidth matrixWidth: Int32, andHeight matrixHeight: Int32)
Parameters
geoPackage
GeoPackage
table
table name
boundingBox
bounding box
minZoom
min zoom level
maxZoom
max zoom level
matrixWidth
matrix width
matrixHeight
matrix height
-
Create tile matrices for zoom levels
Declaration
Objective-C
+ (void)createTileMatricesWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andBounds:(GPKGBoundingBox *)boundingBox andZoomLevels:(NSArray<NSNumber *> *)zoomLevels andWidth:(int)matrixWidth andHeight:(int)matrixHeight;
Swift
class func createTileMatrices(with geoPackage: GPKGGeoPackage!, andTable table: String!, andBounds boundingBox: GPKGBoundingBox!, andZoomLevels zoomLevels: [NSNumber]!, andWidth matrixWidth: Int32, andHeight matrixHeight: Int32)
Parameters
geoPackage
GeoPackage
table
table name
boundingBox
bounding box
zoomLevels
zoom levels
matrixWidth
matrix width
matrixHeight
matrix height
-
Create a tile matrix for a zoom level
Declaration
Objective-C
+ (void)createTileMatrixWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andBounds:(GPKGBoundingBox *)boundingBox andZoom:(int)zoom andWidth:(int)matrixWidth andHeight:(int)matrixHeight;
Swift
class func createTileMatrix(with geoPackage: GPKGGeoPackage!, andTable table: String!, andBounds boundingBox: GPKGBoundingBox!, andZoom zoom: Int32, andWidth matrixWidth: Int32, andHeight matrixHeight: Int32)
Parameters
geoPackage
GeoPackage
table
table name
boundingBox
bounding box
zoom
zoom level
matrixWidth
matrix width
matrixHeight
matrix height
-
Create a tile matrix for a zoom level
Declaration
Objective-C
+ (void)createTileMatrixWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andZoom:(int)zoom andWidth:(int)matrixWidth andHeight:(int)matrixHeight andPixelX:(double)pixelXSize andPixelY:(double)pixelYSize;
Swift
class func createTileMatrix(with geoPackage: GPKGGeoPackage!, andTable table: String!, andZoom zoom: Int32, andWidth matrixWidth: Int32, andHeight matrixHeight: Int32, andPixelX pixelXSize: Double, andPixelY pixelYSize: Double)
Parameters
geoPackage
GeoPackage
table
table name
zoom
zoom level
matrixWidth
matrix width
matrixHeight
matrix height
pixelXSize
pixel x size
pixelYSize
pixel y size
-
+createFeaturesWithGeoPackage:
andTable: andIdentifier: andDescription: andBounds: andGeometryType: andDataType: andColumns: andSRS: Create features table
Declaration
Objective-C
+ (GPKGGeometryColumns *) createFeaturesWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)table andIdentifier:(NSString *)identifier andDescription:(NSString *)description andBounds:(GPKGBoundingBox *)bounds andGeometryType:(enum SFGeometryType)geometryType andDataType:(enum GPKGDgiwgDataType)dataType andColumns:(NSArray<GPKGFeatureColumn *> *)columns andSRS:(GPKGSpatialReferenceSystem *)srs;
Swift
class func createFeatures(with geoPackage: GPKGGeoPackage!, andTable table: String!, andIdentifier identifier: String!, andDescription description: String!, andBounds bounds: GPKGBoundingBox!, andGeometryType geometryType: SFGeometryType, andDataType dataType: GPKGDgiwgDataType, andColumns columns: [GPKGFeatureColumn]!, andSRS srs: GPKGSpatialReferenceSystem!) -> GPKGGeometryColumns!
Parameters
geoPackage
GeoPackage
table
table name
identifier
contents identifier
description
contents description
bounds
contents bounds
geometryType
geometry type
dataType
data type
columns
feature columns
srs
spatial reference system
Return Value
created tile matrix set
-
Create metadata and metadata reference
Declaration
Objective-C
+ (void)createMetadataWithGeoPackage:(GPKGGeoPackage *)geoPackage andMetadata:(GPKGMetadata *)metadata andReference:(GPKGMetadataReference *)reference;
Swift
class func createMetadata(with geoPackage: GPKGGeoPackage!, andMetadata metadata: GPKGMetadata!, andReference reference: GPKGMetadataReference!)
Parameters
geoPackage
GeoPackage
metadata
metadata
reference
metadata reference
-
Create metadata
Declaration
Objective-C
+ (void)createMetadataWithGeoPackage:(GPKGGeoPackage *)geoPackage andMetadata:(GPKGMetadata *)metadata;
Swift
class func createMetadata(with geoPackage: GPKGGeoPackage!, andMetadata metadata: GPKGMetadata!)
Parameters
geoPackage
GeoPackage
metadata
metadata
-
Create metadata reference
Declaration
Objective-C
+ (void)createMetadataReferenceWithGeoPackage:(GPKGGeoPackage *)geoPackage andMetadata:(GPKGMetadata *)metadata andReference: (GPKGMetadataReference *)reference;
Swift
class func createMetadataReference(with geoPackage: GPKGGeoPackage!, andMetadata metadata: GPKGMetadata!, andReference reference: GPKGMetadataReference!)
Parameters
geoPackage
GeoPackage
metadata
the reference metadata
reference
metadata reference
-
Create metadata reference
Declaration
Objective-C
+ (void)createMetadataReferenceWithGeoPackage:(GPKGGeoPackage *)geoPackage andReference: (GPKGMetadataReference *)reference;
Swift
class func createMetadataReference(with geoPackage: GPKGGeoPackage!, andReference reference: GPKGMetadataReference!)
Parameters
geoPackage
GeoPackage
reference
metadata reference
-
Create GeoPackage metadata with a series scope and metadata reference
Declaration
Objective-C
+ (GPKGMetadataReference *)createGeoPackageSeriesMetadata:(NSString *)metadata withGeoPackage: (GPKGGeoPackage *)geoPackage andURI:(NSString *)uri;
Swift
class func createGeoPackageSeriesMetadata(_ metadata: String!, with geoPackage: GPKGGeoPackage!, andURI uri: String!) -> GPKGMetadataReference!
Parameters
metadata
metadata
geoPackage
GeoPackage
uri
URI
Return Value
metadata reference
-
Create GeoPackage metadata with a dataset scope and metadata reference
Declaration
Objective-C
+ (GPKGMetadataReference *)createGeoPackageDatasetMetadata:(NSString *)metadata withGeoPackage: (GPKGGeoPackage *)geoPackage andURI:(NSString *)uri;
Swift
class func createGeoPackageDatasetMetadata(_ metadata: String!, with geoPackage: GPKGGeoPackage!, andURI uri: String!) -> GPKGMetadataReference!
Parameters
metadata
metadata
geoPackage
GeoPackage
uri
URI
Return Value
metadata reference
-
Create GeoPackage metadata and metadata reference
Declaration
Objective-C
+ (GPKGMetadataReference *)createGeoPackageMetadata:(NSString *)metadata withGeoPackage:(GPKGGeoPackage *)geoPackage andScope: (enum GPKGMetadataScopeType)scope andURI:(NSString *)uri;
Swift
class func createGeoPackageMetadata(_ metadata: String!, with geoPackage: GPKGGeoPackage!, andScope scope: GPKGMetadataScopeType, andURI uri: String!) -> GPKGMetadataReference!
Parameters
metadata
metadata
geoPackage
GeoPackage
scope
metadata scope type
uri
URI
Return Value
metadata reference
-
Create metadata and metadata reference
Declaration
Objective-C
+ (GPKGMetadataReference *)createMetadata:(NSString *)metadata withGeoPackage:(GPKGGeoPackage *)geoPackage andScope:(enum GPKGMetadataScopeType)scope andURI:(NSString *)uri andReference:(GPKGMetadataReference *)reference;
Swift
class func createMetadata(_ metadata: String!, with geoPackage: GPKGGeoPackage!, andScope scope: GPKGMetadataScopeType, andURI uri: String!, andReference reference: GPKGMetadataReference!) -> GPKGMetadataReference!
Parameters
metadata
metadata
geoPackage
GeoPackage
scope
metadata scope type
uri
URI
reference
metadata reference
Return Value
metadata reference