GPKGSpatialReferenceSystemDao
Objective-C
@interface GPKGSpatialReferenceSystemDao : GPKGBaseDao
Swift
class GPKGSpatialReferenceSystemDao : GPKGBaseDao
Spatial Reference System Data Access Object
-
Create the DAO
Declaration
Objective-C
+ (GPKGSpatialReferenceSystemDao *)createWithDatabase: (GPKGConnection *)database;
Swift
class func create(withDatabase database: GPKGConnection!) -> GPKGSpatialReferenceSystemDao!
Parameters
database
database connection
Return Value
dao
-
Initialize
Declaration
Objective-C
- (instancetype)initWithDatabase:(GPKGConnection *)database;
Swift
init!(database: GPKGConnection!)
Parameters
database
database connection
Return Value
new spatial reference system dao
-
CRS WKT Extension
Declaration
Objective-C
- (void)setCrsWktExtension:(NSObject *)crsWktExtension;
Swift
func setCrsWktExtension(_ crsWktExtension: NSObject!)
Parameters
crsWktExtension
CRS WKT Extension
-
Determine if the SRS table contains the extension definition 12 063 column for CRS WKT
Declaration
Objective-C
- (BOOL)hasDefinition_12_063;
Swift
func hasDefinition_12_063() -> Bool
Return Value
true if has extension
-
Determine if the SRS table contains the extension epoch column for CRS WKT
Declaration
Objective-C
- (BOOL)hasEpoch;
Swift
func hasEpoch() -> Bool
Return Value
true if has extension
-
Creates the required EPSG WGS84 Spatial Reference System (spec Requirement 11)
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)createWgs84;
Swift
func createWgs84() -> GPKGSpatialReferenceSystem!
Return Value
wgs84 srs
-
Creates the required Undefined Cartesian Spatial Reference System (spec Requirement 11)
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)createUndefinedCartesian;
Swift
func createUndefinedCartesian() -> GPKGSpatialReferenceSystem!
Return Value
undefined cartesian srs
-
Creates the required Undefined Geographic Spatial Reference System (spec Requirement 11)
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)createUndefinedGeographic;
Swift
func createUndefinedGeographic() -> GPKGSpatialReferenceSystem!
Return Value
undefined geographic srs
-
Creates the Web Mercator Spatial Reference System if it does not already exist
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)createWebMercator;
Swift
func createWebMercator() -> GPKGSpatialReferenceSystem!
Return Value
web mercator srs
-
Creates the required EPSG WGS84 Geographical 3D Spatial Reference System
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)createWgs84Geographical3D;
Swift
func createWgs84Geographical3D() -> GPKGSpatialReferenceSystem!
Return Value
spatial reference system
-
Query to get the definition 12 063 value if the extension exists
Declaration
Objective-C
- (NSString *)definition_12_063WithSrsId:(NSNumber *)srsId;
Swift
func definition_12_063(withSrsId srsId: NSNumber!) -> String!
Parameters
srsId
srs id
Return Value
definition or null
-
Query to get the epoch value if the extension exists
Declaration
Objective-C
- (NSDecimalNumber *)epochWithSrsId:(NSNumber *)srsId;
Swift
func epoch(withSrsId srsId: NSNumber!) -> NSDecimalNumber!
Parameters
srsId
srs id
Return Value
epoch or null
-
Query and set the values in the srs object if the extension exists
Declaration
Objective-C
- (void)setExtensionWithSrs:(GPKGSpatialReferenceSystem *)srs;
Swift
func setExtensionWithSrs(_ srs: GPKGSpatialReferenceSystem!)
Parameters
srs
spatial reference system
-
Query and set the values in the srs objects if the extension exists
Declaration
Objective-C
- (void)setExtensionWithSrsArray:(NSArray *)srsArray;
Swift
func setExtensionWithSrsArray(_ srsArray: [Any]!)
Parameters
srsArray
spatial reference system array
-
Update the definition 12 063 in the database if the extension exists
Declaration
Objective-C
- (void)updateDefinition_12_063:(NSString *)definition withSrsId:(NSNumber *)srsId;
Swift
func updateDefinition_12_063(_ definition: String!, withSrsId srsId: NSNumber!)
Parameters
definition
definition
srsId
srs id
-
Update the epoch in the database if the extension exists
Declaration
Objective-C
- (void)updateEpoch:(NSDecimalNumber *)epoch withSrsId:(NSNumber *)srsId;
Swift
func updateEpoch(_ epoch: NSDecimalNumber!, withSrsId srsId: NSNumber!)
Parameters
epoch
epoch
srsId
srs id
-
Update the extension if exists
Declaration
Objective-C
- (void)updateExtensionWithSrs:(GPKGSpatialReferenceSystem *)srs;
Swift
func updateExtension(withSrs srs: GPKGSpatialReferenceSystem!)
Parameters
srs
spatial reference system
-
Get or Create the Spatial Reference System for the provided epsg
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)srsWithEpsg:(NSNumber *)epsg;
Swift
func srs(withEpsg epsg: NSNumber!) -> GPKGSpatialReferenceSystem!
Parameters
epsg
epsg
Return Value
srs
-
Get or Create the Spatial Reference System for the provided organization and id
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)srsWithOrganization:(NSString *)organization andCoordsysId:(NSNumber *)coordsysId;
Swift
func srs(withOrganization organization: String!, andCoordsysId coordsysId: NSNumber!) -> GPKGSpatialReferenceSystem!
Parameters
organization
organization
coordsysId
coordsys id
Return Value
srs
-
Get or Create the Spatial Reference System from the projection
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)srsWithProjection:(PROJProjection *)projection;
Swift
func srs(with projection: PROJProjection!) -> GPKGSpatialReferenceSystem!
Parameters
projection
projection
Return Value
srs
-
Query for the organization coordsys id
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)queryForOrganization:(NSString *)organization andCoordsysId:(NSNumber *)coordsysId;
Swift
func query(forOrganization organization: String!, andCoordsysId coordsysId: NSNumber!) -> GPKGSpatialReferenceSystem!
Parameters
organization
organization
coordsysId
organization coordinate system id
Return Value
srs
-
Query for the projection
Declaration
Objective-C
- (GPKGSpatialReferenceSystem *)queryForProjection:(PROJProjection *)projection;
Swift
func query(for projection: PROJProjection!) -> GPKGSpatialReferenceSystem!
Parameters
projection
projection
Return Value
srs
-
Delete the Spatial Reference System, cascading
Declaration
Objective-C
- (int)deleteCascade:(GPKGSpatialReferenceSystem *)srs;
Swift
func deleteCascade(_ srs: GPKGSpatialReferenceSystem!) -> Int32
Parameters
srs
srs
Return Value
rows deleted
-
Delete the collection of Spatial Reference Systems, cascading
Declaration
Objective-C
- (int)deleteCascadeWithCollection:(NSArray *)srsCollection;
Swift
func deleteCascade(withCollection srsCollection: [Any]!) -> Int32
Parameters
srsCollection
srs array
Return Value
rows deleted
-
Delete the Spatial Reference System where, cascading
Declaration
Objective-C
- (int)deleteCascadeWhere:(NSString *)where andWhereArgs:(NSArray *)whereArgs;
Swift
func deleteCascadeWhere(_ where: String!, andWhereArgs whereArgs: [Any]!) -> Int32
Parameters
where
where clause
whereArgs
where args
Return Value
rows deleted
-
Delete the Spatial Reference System by id, cascading
Declaration
Objective-C
- (int)deleteByIdCascade:(NSNumber *)id;
Swift
func delete(byIdCascade id: NSNumber!) -> Int32
Parameters
id
id
Return Value
rows deleted
-
Delete Spatial Reference Systems by ids, cascading
Declaration
Objective-C
- (int)deleteIdsCascade:(NSArray *)idCollection;
Swift
func deleteIdsCascade(_ idCollection: [Any]!) -> Int32
Parameters
idCollection
id array
Return Value
rows deleted
-
Get Contents referencing the SRS
Declaration
Objective-C
- (GPKGResultSet *)contents:(GPKGSpatialReferenceSystem *)srs;
Swift
func contents(_ srs: GPKGSpatialReferenceSystem!) -> GPKGResultSet!
Parameters
srs
srs
Return Value
result set
-
Get Geometry Columns referencing the SRS
Declaration
Objective-C
- (GPKGResultSet *)geometryColumns:(GPKGSpatialReferenceSystem *)srs;
Swift
func geometryColumns(_ srs: GPKGSpatialReferenceSystem!) -> GPKGResultSet!
Parameters
srs
srs
Return Value
result set
-
Get Tile Matrix Sets referencing the SRS
Declaration
Objective-C
- (GPKGResultSet *)tileMatrixSet:(GPKGSpatialReferenceSystem *)srs;
Swift
func tileMatrixSet(_ srs: GPKGSpatialReferenceSystem!) -> GPKGResultSet!
Parameters
srs
srs
Return Value
result set