GPKGSpatialReferenceSystem

Objective-C

@interface GPKGSpatialReferenceSystem : NSObject <NSMutableCopying>

Swift

class GPKGSpatialReferenceSystem : NSObject, NSMutableCopying

Spatial Reference System object. The coordinate reference system definitions it contains are referenced by the GeoPackage Contents and GeometryColumns objects to relate the vector and tile data in user tables to locations on the earth.

  • Human readable name of this SRS

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *srsName;

    Swift

    var srsName: String! { get set }
  • Unique identifier for each Spatial Reference System within a GeoPackage

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *srsId;

    Swift

    var srsId: NSNumber! { get set }
  • Case-insensitive name of the defining organization e.g. EPSG or epsg

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *organization;

    Swift

    var organization: String! { get set }
  • Numeric ID of the Spatial Reference System assigned by the organization

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *organizationCoordsysId;

    Swift

    var organizationCoordsysId: NSNumber! { get set }
  • Well-known Text Representation of the Spatial Reference System

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *definition;

    Swift

    var definition: String! { get set }
  • Human readable description of this SRS

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *theDescription;

    Swift

    var theDescription: String! { get set }
  • Well-known Text extension Representation of the Spatial Reference System

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *definition_12_063;

    Swift

    var definition_12_063: String! { get set }
  • Coordinate epoch

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDecimalNumber *epoch;

    Swift

    var epoch: NSDecimalNumber! { get set }
  • Get the projection for the Spatial Reference System

    Declaration

    Objective-C

    - (PROJProjection *)projection;

    Swift

    func projection() -> PROJProjection!

    Return Value

    projection

  • Get the projection definition

    Declaration

    Objective-C

    - (NSString *)projectionDefinition;

    Swift

    func projectionDefinition() -> String!

    Return Value

    definition

  • Get the geometry transform from the provided projection to the Spatial Reference System projection

    Declaration

    Objective-C

    - (SFPGeometryTransform *)transformationFromProjection:
        (PROJProjection *)projection;

    Swift

    func transformation(from projection: PROJProjection!) -> SFPGeometryTransform!

    Parameters

    projection

    from projection

    Return Value

    projection transform

  • Set the epoch value

    Declaration

    Objective-C

    - (void)setEpochValue:(double)epoch;

    Swift

    func setEpochValue(_ epoch: Double)

    Parameters

    epoch

    epoch value