utilityNetworkSyncMode property
Specifies the generation and synchronization mode of Utility Network data from the service to an offline geodatabase.
Feature layers and tables are always included in the generation and synchronization of the geodatabase. Utility Network System data can be optionally included.
When this property is set to something other than UtilityNetworkSyncMode.none, the schema of all data layers and tables in the feature service is required to support querying associations or tracing offline.
You can filter feature data using GenerateGeodatabaseParameters.layerOptions by:
- setting GenerateLayerOption.queryOption to GenerateLayerQueryOption.none
- specifying a GenerateLayerOption.whereClause
- setting GenerateLayerOption.useGeometry to true
Excluding data layers or including system layers of the feature service in the GenerateGeodatabaseParameters.layerOptions will result in an error in the GenerateGeodatabaseJob.
Use SyncCapabilities to check which synchronization mode the feature service supports. If SyncCapabilities.supportsUtilityNetworkSystem is true, UtilityNetworkSyncMode.syncSystemTables may be used. If SyncCapabilities.supportsUtilityNetworkTopology is also true, UtilityNetworkSyncMode.syncSystemAndTopologyTables may be used.
Setting this property to something other than UtilityNetworkSyncMode.none allows offline UtilityNetwork query associations. Setting this property to SyncCapabilities.supportsUtilityNetworkTopology also enables offline tracing.
When a replica is created with tracing support from an ArcGIS Enterprise 11.2 or earlier feature service, the GenerateGeodatabaseParameters.syncModel must be SyncModel.none. As of ArcGIS Enterprise 11.3, feature services configured with edit capabilities will support SyncModel.geodatabase.
Utility network sync mode ([UtilityNetworkSyncMode]) | Required sync capabilities ([SyncCapabilities]) | Enables utility network capabilities ([UtilityNetworkCapabilities](https://links.esri.com/flutter-parity)) |
---|---|---|
[UtilityNetworkSyncMode.none] | No sync capability required | No utility network capability enabled |
[UtilityNetworkSyncMode.syncSystemTables] | [SyncCapabilities.supportsUtilityNetworkSystem](https://links.esri.com/flutter-parity) | [UtilityNetworkCapabilities.supportsQueryAssociations](https://links.esri.com/flutter-parity) |
[UtilityNetworkSyncMode.syncSystemAndTopologyTables] | [SyncCapabilities.supportsUtilityNetworkSystem](https://links.esri.com/flutter-parity), [SyncCapabilities.supportsUtilityNetworkTopology](https://links.esri.com/flutter-parity) | [UtilityNetworkCapabilities.supportsQueryAssociations](https://links.esri.com/flutter-parity), [UtilityNetworkCapabilities.supportsTrace](https://links.esri.com/flutter-parity) |
The default value is UtilityNetworkSyncMode.none. Utility Network System data will not be included.
This property can be used at the same time as specifying other additional data types to be included.
Implementation
UtilityNetworkSyncMode get utilityNetworkSyncMode {
final coreValue = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_GenerateGeodatabaseParameters_getUtilityNetworkSyncMode(
_handle,
errorHandler,
);
});
return UtilityNetworkSyncMode._fromCoreValue(
coreValue,
);
}
Implementation
set utilityNetworkSyncMode(UtilityNetworkSyncMode value) {
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_GenerateGeodatabaseParameters_setUtilityNetworkSyncMode(
_handle,
value.coreValue,
errorHandler,
);
});
}