Geodatabase.withFileUri constructor
- Uri fileUri
Creates a geodatabase object with the given path.
If the specified path points to a stand-alone mobile geodatabase created
with ArcGIS Pro and contains a controller dataset, such as a utility
network or parcel fabric, the feature tables on this geodatabase are
read-only. The presence of utility networks can be checked using
Geodatabase.utilityNetworks
.
Parameters:
fileUri
— Path to geodatabase (including .geodatabase file extension).
Implementation
factory Geodatabase.withFileUri(Uri fileUri) {
_initializeArcGISEnvironmentIfNeeded();
final coreFileUri = _CString(fileUri.toFilePath());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Geodatabase_createWithPath(
coreFileUri.bytes, errorHandler);
});
final Geodatabase object = Geodatabase._instanceCache.instanceWith(handle);
object._fileUri.cache(fileUri);
return object;
}