MSFGeometry

Objective-C


@interface MSFGeometry : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

Swift

class MSFGeometry : NSObject

A base class for all geometry types.

  • 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 center point of the geometry.

    Declaration

    Objective-C

    - (MSFMapPos *)getCenterPos;

    Swift

    func getCenterPos() -> MSFMapPos!

    Return Value

    The center point of the geometry.

  • Returns what kind of geometry this is.

    Without it the only way to tell a MultiPoint from a Point is a downcast, or - from a scripting binding - matching on the wrapper’s class name.

    Declaration

    Objective-C

    - (enum MSFGeometryType)getType;

    Swift

    func getType() -> MSFGeometryType

    Return Value

    The geometry type.

  • Returns the minimal bounds for the geometry.

    Declaration

    Objective-C

    - (MSFMapBounds *)getBounds;

    Swift

    func getBounds() -> MSFMapBounds!

    Return Value

    The bounds for the geometry.

  • Returns the geometry as a GeoJSON string, in its own coordinates.

    Here rather than only on Feature because serialising a shape otherwise means constructing a GeoJSONGeometryWriter, which no string-based binding can do.

    Declaration

    Objective-C

    - (NSString *)getGeoJSON;

    Swift

    func getGeoJSON() -> String!

    Return Value

    The geometry as GeoJSON.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()