ProjectionUTMObject

Objective-C


@interface ProjectionUTMObject : ProjectionObject

Swift

class ProjectionUTMObject

This class encapsulates GK projection information.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithX:(double)x
                                    y:(double)y
                                 zone:(unsigned int)zone
                           hemisphere:(HemisphereType)hemisphere;

    Swift

    init!(x: Double, y: Double, zone: UInt32, hemisphere: Any!)
  • Set the fields for projection.

    Declaration

    Objective-C

    - (void)setX:(double)x
              setY:(double)y
              zone:(unsigned int)zone
        hemisphere:(HemisphereType)hemisphere;

    Swift

    func setX(_ x: Double, setY y: Double, zone: UInt32, hemisphere: Any!)
  • Get the first coordinate for the projection.

    Declaration

    Objective-C

    - (double)getX;

    Swift

    func getX() -> Double
  • Get the second coordinate for the projection.

    Declaration

    Objective-C

    - (double)getY;

    Swift

    func getY() -> Double
  • Get zone for the projection.

    Declaration

    Objective-C

    - (int)getZone;

    Swift

    func getZone() -> Int32
  • Get the hemisphere of the projection.

    Declaration

    Objective-C

    - (HemisphereType)getHemisphere;

    Swift

    func getHemisphere() -> Any!