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

    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;

    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.

    Declaration

    Objective-C

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

    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

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

    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

    - (NTMapPos *)fromLat:(double)lat lng:(double)lng;

    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

    - (NTMapPos *)toLatLong:(double)x y:(double)y;

    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;

    Return Value

    The name of this projection.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;