GPKGFeatureGenerator
Objective-C
@interface GPKGFeatureGenerator : NSObject
Swift
class GPKGFeatureGenerator : NSObject
Feature Generator
-
Features bounding box
Declaration
Objective-C
@property (nonatomic, strong) GPKGBoundingBox *boundingBox;
Swift
var boundingBox: GPKGBoundingBox! { get set }
-
Bounding Box projection
Declaration
Objective-C
@property (nonatomic, strong) PROJProjection *boundingBoxProjection;
Swift
var boundingBoxProjection: PROJProjection! { get set }
-
Features projection
Declaration
Objective-C
@property (nonatomic, strong) PROJProjection *projection;
Swift
var projection: PROJProjection! { get set }
-
Number of rows to save in a single transaction
Declaration
Objective-C
@property (nonatomic) int transactionLimit;
Swift
var transactionLimit: Int32 { get set }
-
Progress callbacks
Declaration
Objective-C
@property (nonatomic, strong) NSObject<GPKGProgress> *progress;
Swift
var progress: (any GPKGProgress)! { get set }
-
Get the EPSG WGS84 projection
Declaration
Objective-C
+ (PROJProjection *)epsgWGS84;
Swift
class func epsgWGS84() -> PROJProjection!
Return Value
projection
-
Initialize with number range
Declaration
Objective-C
- (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage andTable:(NSString *)tableName;
Swift
init!(geoPackage: GPKGGeoPackage!, andTable tableName: String!)
Parameters
geoPackage
GeoPackage
tableName
table name
Return Value
new feature generator
-
Get the GeoPackage
Return Value
GeoPackage
-
Get the table name
Declaration
Objective-C
- (NSString *)tableName;
Swift
func tableName() -> String!
Return Value
table name
-
Determine if the feature generator should remain active
Declaration
Objective-C
- (BOOL)isActive;
Swift
func isActive() -> Bool
Return Value
true if active
-
Get the geometry columns
Declaration
Objective-C
- (GPKGGeometryColumns *)geometryColumns;
Swift
func geometryColumns() -> GPKGGeometryColumns!
Return Value
geometry columns
-
Get the columns
Declaration
Objective-C
- (NSDictionary<NSString *, GPKGFeatureColumn *> *)columns;
Swift
func columns() -> [String : GPKGFeatureColumn]!
Return Value
columns
-
Get the Spatial Reference System
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)srs;
Swift
func srs() -> GPKGSpatialReferenceSystem!
Return Value
srs
-
Get the feature DAO
Return Value
feature DAO
-
Generate the features
Declaration
Objective-C
- (int)generateFeatures;
Swift
func generateFeatures() -> Int32
Return Value
generated count
-
Create the feature
Declaration
Objective-C
- (void)createFeatureWithGeometry:(SFGeometry *)geometry andProperties: (NSDictionary<NSString *, NSObject *> *)properties;
Swift
func createFeature(with geometry: SFGeometry!, andProperties properties: [String : NSObject]!)
Parameters
geometry
geometry
properties
properties @throws SQLException upon error
-
Create the Spatial Reference System
@throws SQLException upon error
Declaration
Objective-C
- (void)createSrs;
Swift
func createSrs()
-
Get the projection for creating the Spatial Reference System
Declaration
Objective-C
- (PROJProjection *)srsProjection;
Swift
func srsProjection() -> PROJProjection!
Return Value
projection
-
Create the geometry data
Declaration
Objective-C
- (GPKGGeometryData *)createGeometryData:(SFGeometry *)geometry;
Swift
func createGeometryData(_ geometry: SFGeometry!) -> GPKGGeometryData!
Parameters
geometry
geometry
Return Value
geometry data
-
Add a projection
Declaration
Objective-C
- (void)addProjectionWithAuthority:(NSString *)authority andCode:(NSString *)code toProjections:(PROJProjections *)projections;
Swift
func addProjection(withAuthority authority: String!, andCode code: String!, to projections: PROJProjections!)
Parameters
projections
projections
authority
authority
code
code
-
Create a projection
Declaration
Objective-C
- (PROJProjection *)createProjectionWithAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
func createProjection(withAuthority authority: String!, andCode code: String!) -> PROJProjection!
Parameters
authority
authority
code
code
Return Value
projection