GenerateGeodatabaseParameters QML Type

The parameters to sync data of a sync-enabled geodatabase. More...

Import Statement: import Esri.ArcGISRuntime 100.15
Since: Esri.ArcGISRuntime 100.0
Inherits:

Object

Properties

Signals

Detailed Description

GenerateGeodatabaseParameters are used with GeodatabaseSyncTask::generateGeodatabase to generate sync-enabled geodatabases from supporting ArcGIS Feature services.

Note: Rather than constructing one of these directly, consider using the convenience method GeodatabaseSyncTask::createDefaultGenerateGeodatabaseParameters. It will create a GenerateGeodatabaseParameters object initialized with appropriate parameters based on the supported capabilities and data of the ArcGIS Feature Service.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

Property Documentation

attachmentSyncDirection : AttachmentSyncDirection

The directions to sync attachments.

This property specifies how the geodatabase should be configured to sync attachment data with its originating service. This parameter is available when the service resource sync capabilities includes supports attachmentsSyncDirection (SyncCapabilities::supportsAttachmentsSyncDirection returns true).

attachmentSyncDirection defines how attachments will be synced and is only applicable if the feature service has attachments:

  • Enums.AttachmentSyncDirectionBidirectional - Attachment edits can be both uploaded from the client and downloaded from the service when syncing.
  • Enums.AttachmentSyncDirectionUpload - Attachment edits can only be uploaded from the client when syncing. This is useful in cases where the data collector does not want to consume space with attachments from the service, but does need to collect new attachments.
  • {Enums.AttachmentSyncDirection}{Enums.AttachmentSyncDirectionNone} - Attachment edits are never synced, from either the client or the server.

When GenerateGeodatabaseParameters::returnAttachments is set to true, you can set GenerateGeodatabaseParameters::attachmentSyncDirection to either Enums.AttachmentSyncDirectionBidirectional (default) or Enums.AttachmentSyncDirectionUpload. In this case, create replica includes attachments from the service. When GenerateGeodatabaseParameters::returnAttachments is set to false, you can set GenerateGeodatabaseParameters::attachmentSyncDirection to either Enums.AttachmentSyncDirectionUpload or Enums.AttachmentSyncDirectionDone (default). In this case, the geodatabase does not include attachments from the service.


[default] extent : Geometry

The geographic extent within which features will be included in the sync-enabled geodatabase.

To include non-spatial records, you must set up the LayerOptions for that layer to include a GenerateLayerOption::whereClause and set GenerateLayerOption::useGeometry to false.


layerOptions : list<GenerateLayerOption>

The options specifiying how to filter features from individual layers for inclusion into the geodatabase.

If not specified, all features within the extent are included. For non-spatial records, set GenerateLayerOption::useGeometry to false and provide a GenerateLayerOption::whereClause.

See also GenerateLayerOption.


[default] outSpatialReference : SpatialReference

The spatial reference in which you would like the generated geodatabase.

If the data on the server is not in this spatial reference, it will be reprojected before being included in the geodatabase.


returnAttachments : bool

Whether the sync-enabled geodatabase should contain attachments for the features that are included.

This property only applies if the feature service supports attachments.


syncAnnotations : bool

Specifies whether Annotation data is to be included from the service, when generating, or downloading to, an offline geodatabase.

Feature layers and tables are always included in the generation and synchronization of the geodatabase. Annotation data can be optionally included when downloading from the service.

After this data is taken offline to a local geodatabase, any subsequent inserts, edits, or deletions will NOT be applied to the server data when re-synchronized. If features linked to the annotation have been changed, the server WILL apply the feature-linked annotation updates. Another download from the server will replace any offline inserts, edits or deletions of Annotation features.

The default value is true. Annotation data will be included.

SyncCapabilities::supportsAnnotations can be used to check whether Annotation data is available from the service.

This property can be used at the same time as specifying other additional data types to be included.

This property was introduced in Esri.ArcGISRuntime 100.14.


syncContingentValues : bool

Specifies whether Contingent Value data is to be included from the service, when generating, or synchronizing with, an offline geodatabase.

Feature layers and tables are always included in the generation and synchronization of the geodatabase. Contingent Value data can be optionally included.

The default value is false. Contingent Value data will not be included.

SyncCapabilities::supportsContingentValues can be used to check whether Contingent Value data is available from the service.

This property can be used at the same time as specifying other additional data types to be included.

This property was introduced in Esri.ArcGISRuntime 100.13.


syncDimensions : bool

Specifies whether Dimension data is to be included from the service, when generating, or synchronizing with, an offline geodatabase.

Feature layers and tables are always included in the generation and synchronization of the geodatabase. Dimension data can be optionally included.

The default value is true. Dimension data will be included.

SyncCapabilities::supportsDimensions can be used to check whether Dimension data is available from the service.

This property can be used at the same time as specifying other additional data types to be included.

This property was introduced in Esri.ArcGISRuntime 100.14.


syncModel : SyncModel

The SyncModel.

This property specifies whether the geodatabase should be configured to sync with the service as a whole (Enums.SyncModelGeodatabase) or by individual layer or table (Enums.SyncModelLayer).

See also Enums.SyncModel.


utilityNetworkSyncMode : Enums.UtilityNetworkSyncMode

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.

The default value is Enums.UtilityNetworkSyncModeNone. 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.

This property was introduced in Esri.ArcGISRuntime 100.11.


Signal Documentation

attachmentSyncDirectionChanged()

Emitted when the attachmentSyncDirection property of this GenerateGeodatabaseParameters changes.

Note: The corresponding handler is onAttachmentSyncDirectionChanged.


extentChanged()

Emitted when the extent property of this GenerateGeodatabaseParameters changes.

Note: The corresponding handler is onExtentChanged.


layerOptionsChanged()

Emitted when the layerOptions property of this GenerateGeodatabaseParameters changes.

Note: The corresponding handler is onLayerOptionsChanged.


outSpatialReferenceChanged()

Emitted when the outSpatialReference property of this GenerateGeodatabaseParameters changes.

Note: The corresponding handler is onOutSpatialReferenceChanged.


returnAttachmentsChanged()

Emitted when the returnAttachments property of this GenerateGeodatabaseParameters changes.

Note: The corresponding handler is onReturnAttachmentsChanged.


syncAnnotationsChanged()

Emitted when the syncAnnotations property changes.

Note: The corresponding handler is onSyncAnnotationsChanged.

This signal was introduced in Esri.ArcGISRuntime 100.14.


syncContingentValuesChanged()

Emitted when the syncContingentValues property changes.

Note: The corresponding handler is onSyncContingentValuesChanged.

This signal was introduced in Esri.ArcGISRuntime 100.13.


syncDimensionsChanged()

Emitted when the syncDimensions property changes.

Note: The corresponding handler is onSyncDimensionsChanged.

This signal was introduced in Esri.ArcGISRuntime 100.14.


syncModelChanged()

Emitted when the syncModel property of this GenerateGeodatabaseParameters changes.

Note: The corresponding handler is onSyncModelChanged.


utilityNetworkSyncModeChanged()

Emitted when the utilityNetworkSyncMode property changes.

Note: The corresponding handler is onUtilityNetworkSyncModeChanged.

This signal was introduced in Esri.ArcGISRuntime 100.11.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.