MSFFeatureCollection

Objective-C


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

Swift

class MSFFeatureCollection : NSObject

A collection of features.

  • Constructs a FeatureCollection from a vector of features.

    Declaration

    Objective-C

    - (id)initWithFeatures:(MSFFeatureVector *)features;

    Swift

    init!(features: MSFFeatureVector!)

    Parameters

    features

    The features for the collection.

  • Returns the number of features in this container.

    Declaration

    Objective-C

    - (int)getFeatureCount;

    Swift

    func getFeatureCount() -> Int32

    Return Value

    The number of features.

  • Returns the feature at the specified index. Index must be between 0 and getFeatureCount (exclusive).

    Declaration

    Objective-C

    - (MSFFeature *)getFeature:(int)index;

    Swift

    func getFeature(_ index: Int32) -> MSFFeature!

    Parameters

    index

    The index of the feature to get.

    Return Value

    The feature at specified index. @throws NSException If the index is out of range.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()