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!) -> Bool

    Parameters

    object

    The 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() -> UInt

    Return Value

    The hash value of this object.

  • Returns the bounds of this projection.

    Declaration

    Objective-C

    - (MSFMapBounds *)getBounds;

    Swift

    func getBounds() -> MSFMapBounds!

    Return Value

    The bounds of this projection.

  • Transforms a position from the WGS84 coordinate system to the coordinate system of this projection.

    Declaration

    Objective-C

    - (MSFMapPos *)fromWgs84:(MSFMapPos *)pos;

    Swift

    func fromWgs84(_ pos: MSFMapPos!) -> MSFMapPos!

    Parameters

    pos

    The 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

    Objective-C

    - (MSFMapPos *)toWgs84:(MSFMapPos *)pos;

    Swift

    func toWgs84(_ pos: MSFMapPos!) -> MSFMapPos!

    Parameters

    pos

    The 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

    lat

    The latitude in the WGS84 coordinate system. It should be in range -90..90.

    lng

    The 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

    x

    The x position in the coordinate system of this projection.

    y

    The 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()