MSFProjection
Objective-C
@interface MSFProjection : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFProjection : NSObject
An abstract base class for all projections.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Returns the bounds of this projection.
Return Value
The bounds of this projection.
-
Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.
Declaration
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.
Declaration
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
- (MSFMapPos *)fromLat:(double)lat lng:(double)lng;Swift
func fromLat(_ lat: Double, lng: Double) -> MSFMapPos!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
- (MSFMapPos *)toLatLong:(double)x y:(double)y;Swift
func toLatLong(_ x: Double, y: Double) -> MSFMapPos!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;Swift
func getName() -> String!Return Value
The name of this projection.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()