MSFFeature

Objective-C


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

Swift

class MSFFeature : NSObject

A feature consisting of geometry and properties.

  • 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.

  • Constructs a Feature object from geometry and properties.

    Declaration

    Objective-C

    - (id)initWithGeometry:(MSFGeometry *)geometry
                properties:(MSFVariant *)properties;

    Swift

    init!(geometry: MSFGeometry!, properties: MSFVariant!)

    Parameters

    geometry

    The geometry of the feature.

    properties

    The properties of the feature.

  • Returns the geometry of the feature.

    Declaration

    Objective-C

    - (MSFGeometry *)getGeometry;

    Swift

    func getGeometry() -> MSFGeometry!

    Return Value

    The geometry of the feature.

  • Returns the properties of the feature.

    Declaration

    Objective-C

    - (MSFVariant *)getProperties;

    Swift

    func getProperties() -> MSFVariant!

    Return Value

    The properties of the feature.

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

    Serialising a geometry otherwise means constructing a GeoJSONGeometryWriter in the binding, which every binding then does differently and, in a scripting one, slowly.

    Declaration

    Objective-C

    - (NSString *)getGeometryGeoJSON;

    Swift

    func getGeometryGeoJSON() -> String!

    Return Value

    The geometry as GeoJSON, or an empty string when there is no geometry.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()