NTFeatureCollectionSearchService


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

A search service for finding features from a specified feature collection.

  • Constructs a FeatureCollectionSearchService for given feature collection.

    Declaration

    Objective-C

    - (id)initWithProjection:(NTProjection *)projection
           featureCollection:(NTFeatureCollection *)featureCollection;

    Parameters

    projection

    The projection to use for the feature collection.

    featureCollection

    The feature collection to search from.

  • Returns the projection of the feature collection of the search service.

    Declaration

    Objective-C

    - (NTProjection *)getProjection;

    Return Value

    The projection of the feature collection of the search service.

  • Returns the feature collection of the search service.

    Declaration

    Objective-C

    - (NTFeatureCollection *)getFeatureCollection;

    Return Value

    The feature collection of the search service.

  • Returns the maximum number of results the search service returns.

    Declaration

    Objective-C

    - (int)getMaxResults;

    Return Value

    The maximum number of results the search service returns.

  • Sets the maximum number of results the search service returns. The default number of results is 1000.

    Declaration

    Objective-C

    - (void)setMaxResults:(int)maxResults;

    Parameters

    maxResults

    The new maximum number of results the geocoding service returns.

  • Searches for the features specified by search request from the feature collection bound to the service.

    Declaration

    Objective-C

    - (NTFeatureCollection *)findFeatures:(NTSearchRequest *)request;

    Parameters

    request

    The search request containing search filters.

    Return Value

    The resulting feature collection containing features matching the request.

  • Searches for the features specified by search request from the feature collection bound to the service.

    Declaration

    Objective-C

    - (NTFeatureCollection *)
        findFeaturesSwigExplicitNTFeatureCollectionSearchService:
            (NTSearchRequest *)request;

    Parameters

    request

    The search request containing search filters.

    Return Value

    The resulting feature collection containing features matching the request.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;