generateGeodatabase method
- {required GenerateGeodatabaseParameters parameters,
- required Uri pathToGeodatabaseFileUri}
Returns a job to generate and download a geodatabase from an ArcGIS feature service.
Parameters:
parameters
— The parameters for generate geodatabase.pathToGeodatabaseFileUri
— a path including a new filename where the downloaded geodatabase is written to.
Return Value: Returns a job to generate a geodatabase into the specified filename. The filenames should end in .geodatabase.
Implementation
GenerateGeodatabaseJob generateGeodatabase(
{required GenerateGeodatabaseParameters parameters,
required Uri pathToGeodatabaseFileUri}) {
final corePathToGeodatabaseFileUri =
_CString(pathToGeodatabaseFileUri.toFilePath());
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeodatabaseSyncTask_generateGeodatabase(_handle,
parameters._handle, corePathToGeodatabaseFileUri.bytes, errorHandler);
});
return GenerateGeodatabaseJob._fromHandle(objectHandle)!;
}