GenerateLayerOption.withLayerIdWhereClause constructor
Creates a new generate layer option instance with the supplied layer id and where clause for use with generate geodatabase on the geodatabase sync task.
Creates a new instance with the supplied layer ID and where clause and the following default values:
- GenerateLayerOption.queryOption = GenerateLayerQueryOption.useFilter
- GenerateLayerOption.useGeometry = true
- GenerateLayerOption.includeRelated = false
Parameters:
layerId
— A layer id in the service.whereClause
— a where clause to apply to the layer.
Implementation
factory GenerateLayerOption.withLayerIdWhereClause({
required int layerId,
required String whereClause,
}) {
_initializeArcGISEnvironmentIfNeeded();
final coreWhereClause = _CString(whereClause);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GenerateLayerOption_createWithLayerIdWhereClause(
layerId,
coreWhereClause.bytes,
errorHandler,
);
});
return GenerateLayerOption._withHandle(handle);
}