GPKGDgiwgGeoPackageManager
Objective-C
@interface GPKGDgiwgGeoPackageManager : GPKGGeoPackageManager
Swift
class GPKGDgiwgGeoPackageManager : GPKGGeoPackageManager
DGIWG (Defence Geospatial Information Working Group) GeoPackage Manager used to create and open GeoPackages
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new DGIWG GeoPackage Manager
-
Create a GeoPackage
Declaration
Objective-C
- (GPKGDgiwgFile *)create:(NSString *)database withMetadata:(NSString *)metadata;
Swift
func create(_ database: String!, withMetadata metadata: String!) -> GPKGDgiwgFile!
Parameters
database
database name
metadata
metadata
Return Value
GeoPackage file if created
-
Create a GeoPackage
Declaration
Objective-C
- (GPKGDgiwgFile *)create:(NSString *)database withURI:(NSString *)uri andMetadata:(NSString *)metadata;
Swift
func create(_ database: String!, withURI uri: String!, andMetadata metadata: String!) -> GPKGDgiwgFile!
Parameters
database
database name
uri
URI
metadata
metadata
Return Value
GeoPackage file if created
-
Create a new GeoPackage database in specified directory
Declaration
Objective-C
- (GPKGDgiwgFile *)create:(NSString *)database inDirectory:(NSString *)dbDirectory withMetadata:(NSString *)metadata;
Swift
func create(_ database: String!, inDirectory dbDirectory: String!, withMetadata metadata: String!) -> GPKGDgiwgFile!
Parameters
database
database name
dbDirectory
directory
metadata
metadata
Return Value
GeoPackage file if created
-
Create a new GeoPackage database in specified directory
Declaration
Objective-C
- (GPKGDgiwgFile *)create:(NSString *)database inDirectory:(NSString *)dbDirectory withURI:(NSString *)uri andMetadata:(NSString *)metadata;
Swift
func create(_ database: String!, inDirectory dbDirectory: String!, withURI uri: String!, andMetadata metadata: String!) -> GPKGDgiwgFile!
Parameters
database
database name
dbDirectory
directory
uri
URI
metadata
metadata
Return Value
GeoPackage file if created
-
Open the database
Declaration
Objective-C
- (GPKGDgiwgGeoPackage *)open:(NSString *)database;
Swift
func open(_ database: String!) -> GPKGDgiwgGeoPackage!
Parameters
database
database name
Return Value
open GeoPackage
-
Open the database
Declaration
Objective-C
- (GPKGDgiwgGeoPackage *)open:(NSString *)database andValidate:(BOOL)validate;
Swift
func open(_ database: String!, andValidate validate: Bool) -> GPKGDgiwgGeoPackage!
Parameters
database
database name
validate
validate the GeoPackage
Return Value
open GeoPackage
-
Open the database
Declaration
Objective-C
- (GPKGDgiwgGeoPackage *)openDGIWG:(GPKGDgiwgFile *)file;
Swift
func openDGIWG(_ file: GPKGDgiwgFile!) -> GPKGDgiwgGeoPackage!
Parameters
file
GeoPackage file
Return Value
open GeoPackage
-
Open the database
Declaration
Objective-C
- (GPKGDgiwgGeoPackage *)openDGIWG:(GPKGDgiwgFile *)file andValidate:(BOOL)validate;
Swift
func openDGIWG(_ file: GPKGDgiwgFile!, andValidate validate: Bool) -> GPKGDgiwgGeoPackage!
Parameters
file
GeoPackage file
validate
validate the GeoPackage
Return Value
open GeoPackage
-
Delete the database
Declaration
Objective-C
- (BOOL)deleteDGIWG:(GPKGDgiwgFile *)file;
Swift
func deleteDGIWG(_ file: GPKGDgiwgFile!) -> Bool
Parameters
file
GeoPackage file
Return Value
true if deleted
-
Delete the database
Declaration
Objective-C
- (BOOL)deleteDGIWG:(GPKGDgiwgFile *)file andFile:(BOOL)deleteFile;
Swift
func deleteDGIWG(_ file: GPKGDgiwgFile!, andFile deleteFile: Bool) -> Bool
Parameters
file
GeoPackage file
deleteFile
true to delete the GeoPackage file
Return Value
true if deleted
-
Is the GeoPackage valid according to the DGIWG GeoPackage Profile
Declaration
Objective-C
+ (BOOL)isValid:(GPKGDgiwgGeoPackage *)geoPackage;
Swift
class func isValid(_ geoPackage: GPKGDgiwgGeoPackage!) -> Bool
Parameters
geoPackage
GeoPackage
Return Value
true if valid
-
Validate the GeoPackage against the DGIWG GeoPackage Profile
Declaration
Objective-C
+ (GPKGDgiwgValidationErrors *)validate:(GPKGDgiwgGeoPackage *)geoPackage;
Swift
class func validate(_ geoPackage: GPKGDgiwgGeoPackage!) -> GPKGDgiwgValidationErrors!
Parameters
geoPackage
GeoPackage
Return Value
validation errors