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:(PJ *)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:(PJ *)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:(PJ *)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:(PJ *)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:(PJ *)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:(PJ *)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:(PJ *)crs andDefinition:(NSString *)definition andParams:(NSString *)params;
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
params
PROJ parameters
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:(PJ *)crs;
Swift
init!(authority: String!, andNumberCode code: NSNumber!, andCrs crs: OpaquePointer!)
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:(PJ *)crs;
Swift
init!(authority: String!, andIntCode code: Int32, andCrs crs: OpaquePointer!)
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:(PJ *)crs;
Swift
init!(authority: String!, andCode code: String!, andCrs crs: OpaquePointer!)
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:(PJ *)crs andDefinition:(NSString *)definition;
Swift
init!(authority: String!, andNumberCode code: NSNumber!, andCrs crs: OpaquePointer!, 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:(PJ *)crs andDefinition:(NSString *)definition;
Swift
init!(authority: String!, andIntCode code: Int32, andCrs crs: OpaquePointer!, 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:(PJ *)crs andDefinition:(NSString *)definition;
Swift
init!(authority: String!, andCode code: String!, andCrs crs: OpaquePointer!, 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:(PJ *)crs andDefinition:(NSString *)definition andParams:(NSString *)params;
Swift
init!(authority: String!, andCode code: String!, andCrs crs: OpaquePointer!, andDefinition definition: String!, andParams params: String!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
params
PROJ parameters
Return Value
new projection
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority andNumberCode:(NSNumber *)code andCrs:(PJ *)crs andDefinition:(NSString *)definition andDefinitionCrs:(CRSObject *)definitionCRS;
Swift
init!(authority: String!, andNumberCode code: NSNumber!, andCrs crs: OpaquePointer!, andDefinition definition: String!, andDefinitionCrs definitionCRS: CRSObject!)
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 andIntCode:(int)code andCrs:(PJ *)crs andDefinition:(NSString *)definition andDefinitionCrs:(CRSObject *)definitionCRS;
Swift
init!(authority: String!, andIntCode code: Int32, andCrs crs: OpaquePointer!, andDefinition definition: String!, andDefinitionCrs definitionCRS: CRSObject!)
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 andCode:(NSString *)code andCrs:(PJ *)crs andDefinition:(NSString *)definition andDefinitionCrs:(CRSObject *)definitionCRS;
Swift
init!(authority: String!, andCode code: String!, andCrs crs: OpaquePointer!, andDefinition definition: String!, andDefinitionCrs definitionCRS: CRSObject!)
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 andCode:(NSString *)code andCrs:(PJ *)crs andDefinition:(NSString *)definition andDefinitionCrs:(CRSObject *)definitionCRS andParams:(NSString *)params;
Swift
init!(authority: String!, andCode code: String!, andCrs crs: OpaquePointer!, andDefinition definition: String!, andDefinitionCrs definitionCRS: CRSObject!, andParams params: String!)
Parameters
authority
coordinate authority
code
coordinate code
crs
coordinate reference system
definition
well-known text coordinate definition
definitionCRS
definition parsed coordinate reference system
params
PROJ parameters
Return Value
new projection
-
Destroy the projection memory
Declaration
Objective-C
- (void)free;
Swift
func free()
-
Destroy the projection memory
Declaration
Objective-C
- (void)close;
Swift
func close()
-
Destroy the projection memory
Declaration
Objective-C
- (void)destroy;
Swift
func destroy()
-
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
-
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 PROJ params
Declaration
Objective-C
- (NSString *)params;
Swift
func params() -> String!
Return Value
params
-
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
-
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