Class Geodatabase
Represents a mobile geodatabase containing geographic data and non-spatial tables.
Inheritance
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class Geodatabase
Remarks
Geodatabase is used to open and access the contents of a mobile geodatabase (.geodatabase file) that can contain geographic features, non-spatial tabular data, and data such as attachments, utility networks, field domain definitions, contingent values, and relationships between layers/tables.
Geodatabases can contain one or more geodatabase feature tables. You can create a layer from
Geodatabase
-
A Feature
Layer from any table returned by GeodatabaseFeature that contains point, polyline, or polygon features. Check that HasTables Geometry istrue
. -
An Annotation
Layer from any table returned by GeodatabaseAnnotation .Tables -
A Dimension
Layer from any table returned by GeodatabaseDimension .Tables
You can generate a mobile geodatabase file from an ArcGIS feature service and downloaded it to a device using
offline workflows offered by the Geodatabase
Mobile geodatabase files can also be created with ArcGIS Pro. These geodatabases can be used offline but they do not support synchronization with the original feature service. See Build offline applications for more information.
For editing workflows that use a mobile geodatabase, you can use geodatabase transactions to manage a set of
edits (transaction). If you start a transaction with Begin
Properties
Name | Description |
---|---|
Domains | Gets a list of the domains that exist in the geodatabase. |
Generate |
Gets the geometry that was used to generate the sync-enabled geodatabase. |
Geodatabase |
Gets the collection of Geodatabase |
Geodatabase |
Gets a collection of Geodatabase |
Geodatabase |
Gets a collection of Geodatabase |
Is |
Gets a value indicating whether a transaction is active on the geodatabase. |
Min |
Gets the minimum server generation number for the geodatabase. |
Path | Gets the path to the database. |
Source | Gets the ArcGIS REST feature service endpoint. |
Sync |
Gets the sync ID of the geodatabase. |
Sync |
Gets the Sync |
Utility |
Gets the Utility |
Methods
Name | Description |
---|---|
Begin |
Starts a transaction on the geodatabase. |
Close() | Closes the connection to the geodatabase. |
Commit |
Commits the edits in the transaction to the geodatabase. |
Create |
Creates an empty mobile geodatabase at the specified path. |
Create |
Creates a new domain in the geodatabase. |
Create |
Creates a new table in the geodatabase. |
Delete |
Deletes the domain with the specified name from the geodatabase. |
Delete |
Deletes an existing table from the geodatabase. |
Get |
Returns the Geodatabase |
Get |
Returns the Geodatabase |
Get |
Returns a feature table containing dimension features from the geodatabase, as specified by the given feature service layer ID. |
Get |
Returns a feature table containing dimension features from the geodatabase, as specified by the given tableName. |
Get |
Returns the Geodatabase |
Get |
Returns the Geodatabase |
Get |
Gets a Utility |
Has |
Returns a value indicating whether database has local edits. |
Is |
Returns a value indicating sync is enabled for the database. |
Open |
Opens a Geodatabase at the specified path. |
Rollback |
Rollback the edits in the transaction from the geodatabase. |
Events
Name | Description |
---|---|
Transaction |
Occurs when a transaction starts or ends (either committed or rolled back). |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |