ProjectionBNGObject

Objective-C


@interface ProjectionBNGObject : ProjectionObject

Swift

class ProjectionBNGObject

This class encapsulates BNG projection information.

  • Initializes and returns a newly allocated object using the parameters for projection.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEasting:(double)easting
                                   northing:(double)northing;

    Swift

    init!(easting: Double, northing: Double)
  • Initializes and returns a newly allocated object using the parameters for projection.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGridReference:(nonnull NSString *)grid;

    Swift

    init!(gridReference grid: Any!)
  • Set the fields for projection.

    Declaration

    Objective-C

    - (void)setEasting:(double)easting northing:(double)northing;

    Swift

    func setEasting(_ easting: Double, northing: Double)
  • Set the fields for projection.

    Declaration

    Objective-C

    - (void)setGridReference:(nonnull NSString *)grid;

    Swift

    func setGridReference(_ grid: Any!)
  • Get easting for the projection.

    Declaration

    Objective-C

    - (double)getEasting;

    Swift

    func getEasting() -> Double
  • Get northing for the projection.

    Declaration

    Objective-C

    - (double)getNorthing;

    Swift

    func getNorthing() -> Double
  • Get grid reference for the projection.

    Declaration

    Objective-C

    - (nonnull NSString *)getGridReference;

    Swift

    func getGridReference() -> Any!