PROJProjection
Objective-C
@interface PROJProjection : NSObject
Swift
class PROJProjection : NSObject
Single Projection for an authority and code
-
Initialize
Declaration
Objective-C
+ (PROJProjection *)projectionWithAuthority:(NSString *)authority andNumberCode:(NSNumber *)code andCrs:(projPJ)crs;
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Objective-C
+ (PROJProjection *)projectionWithAuthority:(NSString *)authority andIntCode:(int)code andCrs:(projPJ)crs;
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Objective-C
+ (PROJProjection *)projectionWithAuthority:(NSString *)authority andCode:(NSString *)code andCrs:(projPJ)crs;
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Objective-C
+ (PROJProjection *)projectionWithAuthority:(NSString *)authority andNumberCode:(NSNumber *)code andCrs:(projPJ)crs andDefinition:(NSString *)definition;
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
Return Value
new projection
-
Initialize
Declaration
Objective-C
+ (PROJProjection *)projectionWithAuthority:(NSString *)authority andIntCode:(int)code andCrs:(projPJ)crs andDefinition:(NSString *)definition;
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
Return Value
new projection
-
Initialize
Declaration
Objective-C
+ (PROJProjection *)projectionWithAuthority:(NSString *)authority andCode:(NSString *)code andCrs:(projPJ)crs andDefinition:(NSString *)definition;
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
Return Value
new projection
-
Initialize
Declaration
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
definitionCRS
definition parsed coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
definitionCRS
definition parsed coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
definitionCRS
definition parsed coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority andNumberCode:(NSNumber *)code andCrs:(projPJ)crs;
Swift
init!(authority: String!, andNumberCode code: NSNumber!, andCrs crs: projPJ!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority andIntCode:(int)code andCrs:(projPJ)crs;
Swift
init!(authority: String!, andIntCode code: Int32, andCrs crs: projPJ!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority andCode:(NSString *)code andCrs:(projPJ)crs;
Swift
init!(authority: String!, andCode code: String!, andCrs crs: projPJ!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority andNumberCode:(NSNumber *)code andCrs:(projPJ)crs andDefinition:(NSString *)definition;
Swift
init!(authority: String!, andNumberCode code: NSNumber!, andCrs crs: projPJ!, andDefinition definition: String!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
Return Value
new projection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority andIntCode:(int)code andCrs:(projPJ)crs andDefinition:(NSString *)definition;
Swift
init!(authority: String!, andIntCode code: Int32, andCrs crs: projPJ!, andDefinition definition: String!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
Return Value
new projection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority andCode:(NSString *)code andCrs:(projPJ)crs andDefinition:(NSString *)definition;
Swift
init!(authority: String!, andCode code: String!, andCrs crs: projPJ!, andDefinition definition: String!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
Return Value
new projection
-
Initialize
Declaration
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
definitionCRS
definition parsed coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
definitionCRS
definition parsed coordinate reference system
Return Value
new projection
-
Initialize
Declaration
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
definitionCRS
definition parsed coordinate reference system
Return Value
new projection
-
Free the projection memory
Declaration
Objective-C
- (void)free;
Swift
func free()
-
Get the coordinate authority
Declaration
Objective-C
- (NSString *)authority;
Swift
func authority() -> String!
Return Value
authority
-
Get the coordinate code
Declaration
Objective-C
- (NSString *)code;
Swift
func code() -> String!
Return Value
code
-
Get the Coordinate Reference System
Return Value
coordinate reference system
-
Check if a lat lon crs
Declaration
Objective-C
- (BOOL)isLatLong;
Swift
func isLatLong() -> Bool
Return Value
true if a lat lon crs
-
Get the well-known text coordinate definition
Declaration
Objective-C
- (NSString *)definition;
Swift
func definition() -> String!
Return Value
definition
-
Get the definition parsed Coordinate Reference System
Return Value
coordinate reference system
-
Get the transformation from this Projection to the EPSG code. Each thread of execution should have it’s own transformation.
Declaration
Objective-C
- (PROJProjectionTransform *)transformationWithEpsg:(int)epsg;
Swift
func transformation(withEpsg epsg: Int32) -> PROJProjectionTransform!
Parameters
epsg
epsg
Return Value
transform
-
Get the transformation from this Projection to the authority and coordinate code. Each thread of execution should have it’s own transformation.
Declaration
Objective-C
- (PROJProjectionTransform *)transformationWithAuthority:(NSString *)authority andIntCode:(int)code;
Swift
func transformation(withAuthority authority: String!, andIntCode code: Int32) -> PROJProjectionTransform!
Parameters
authority
coordinate authority
code
coordinate code
Return Value
transform
-
Get the transformation from this Projection to the authority and coordinate code. Each thread of execution should have it’s own transformation.
Declaration
Objective-C
- (PROJProjectionTransform *)transformationWithAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
func transformation(withAuthority authority: String!, andCode code: String!) -> PROJProjectionTransform!
Parameters
authority
coordinate authority
code
coordinate code
Return Value
transform
-
Get the transformation from this Projection to the provided projection. Each thread of execution should have it’s own transformation.
Declaration
Objective-C
- (PROJProjectionTransform *)transformationWithProjection: (PROJProjection *)projection;
Swift
func transformation(with projection: PROJProjection!) -> PROJProjectionTransform!
Parameters
projection
projection
Return Value
transform
-
Convert the value to meters
Declaration
Objective-C
- (double)toMeters:(double)value;
Swift
func toMeters(_ value: Double) -> Double
Parameters
value
value
Return Value
meters
-
Get the projection unit
Return Value
unit
-
Check if this projection is equal to the authority and code
Declaration
Objective-C
- (BOOL)isEqualToAuthority:(NSString *)authority andNumberCode:(NSNumber *)code;
Swift
func isEqual(toAuthority authority: String!, andNumberCode code: NSNumber!) -> Bool
Parameters
authority
coordinate authority
code
coordinate code
Return Value
true if equal
-
Check if this projection is equal to the authority and code
Declaration
Objective-C
- (BOOL)isEqualToAuthority:(NSString *)authority andCode:(NSString *)code;
Swift
func isEqual(toAuthority authority: String!, andCode code: String!) -> Bool
Parameters
authority
coordinate authority
code
coordinate code
Return Value
true if equal
-
Check if this projection is equal to the projection
Declaration
Objective-C
- (BOOL)isEqualToProjection:(PROJProjection *)projection;
Swift
func isEqual(to projection: PROJProjection!) -> Bool
Parameters
projection
projection
Return Value
true if equal