ServiceAreaTask.withGeodatabase constructor
Creates a service area task with path to geodatabase.
Parameters:
databasefileUri
— A path to geodatabase.networkName
— A network name.
Implementation
factory ServiceAreaTask.withGeodatabase({
required Uri databasefileUri,
required String networkName,
}) {
_initializeArcGISEnvironmentIfNeeded();
final coreDatabasefileUri = _CString(databasefileUri.toFilePath());
final coreNetworkName = _CString(networkName);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ServiceAreaTask_createWithGeodatabase(
coreDatabasefileUri.bytes,
coreNetworkName.bytes,
errorHandler,
);
});
return ServiceAreaTask._withHandle(handle);
}