setSearchWhereClause method

void setSearchWhereClause(
  1. {required String sourceName,
  2. required String searchWhereClause}
)

Sets a search where clause on the specified network dataset's source feature class. Only features satisfying the where clause for the specified feature class will be used to locate facilities on the network during the solve operation. If a where clause is not set all network features are used.

Parameters:

  • sourceName — The name of the network dataset's source feature class the where clause will be applied to.
  • searchWhereClause — The search where clause.

Implementation

void setSearchWhereClause(
    {required String sourceName, required String searchWhereClause}) {
  final coreSourceName = _CString(sourceName);
  final coreSearchWhereClause = _CString(searchWhereClause);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ServiceAreaParameters_setSearchWhereClause(_handle,
        coreSourceName.bytes, coreSearchWhereClause.bytes, errorHandler);
  });
}