NTProjection
@interface NTProjection : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
An abstract base class for all projections.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Parameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Return Value
The hash value of this object.
-
Returns the bounds of this projection.
Declaration
Objective-C
- (NTMapBounds *)getBounds;Return Value
The bounds of this projection.
-
Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
Parameters
posThe position in the WGS84 coordinate system. It should be encoded as longitude-latitude.
Return Value
The transformed position in the coordinate system of this projection.
-
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system.
Parameters
posThe position in the coordinate system of this projection.
Return Value
The transformed position in the WGS84 coordinate system. It is given as longitude-latitude.
-
Transforms a position given using latitutde-longitude coordinates from the WGS84 coordinate system to the coordinate system of this projection.
Declaration
Objective-C
- (NTMapPos *)fromLat:(double)lat lng:(double)lng;Parameters
latThe latitude in the WGS84 coordinate system. It should be in range -90..90.
lngThe longitude in the WGS84 coordinate system. It should be in range -180..180.
Return Value
The transformed position in the coordinate system of this projection.
-
Transforms a position from the coordinate system of this projection to the WGS84 coordinate system latitude-longitute coordinates.
Declaration
Objective-C
- (NTMapPos *)toLatLong:(double)x y:(double)y;Parameters
xThe x position in the coordinate system of this projection.
yThe y position in the coordinate system of this projection.
Return Value
The transformed position in the WGS84 coordinate system given as latitude-longitude.
-
Return name of this projection in Well-Known format. For example, as “EPSG:3857”
Declaration
Objective-C
- (NSString *)getName;Return Value
The name of this projection.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTProjection Class Reference