GeoData Service CreateReplica method

Creates child replica containing a spatial subset of data from a specified set of datasets.

 

CreateReplica(string ParentVersion, string ReplicaName, GPReplicaDescription ReplicaDescription, GPReplicaOptions ReplicaOptions, GDSExportOptions ExportOptions, esriGDSTransportType TransportType)

 

Parameter

Description

ParentVersion

 

The version on the geodatabase that the replica will be created from.
 

ReplicaName

 

Name of the replica.

ReplicaDescription

 

A description of the data to replicate as well as various settings that define how the data will be replicated.  For example, you can set a spatial filter, set the replica model type, and specify whether or not to include related data.  See the GPReplicaDescription class for more information.
 

ReplicaOptions

 

Used to set various replica options such as the replica access type and the initial data sender.  See the GPReplicaOptions class for more information.
 

ExportOptions

 

Defines the output of the method. This includes the outut format and whether or not the output will be compressed. See GDSExportOptions for more information.
 

TransportType

 

Defines how the client will be able to retrieve the results.  See esriGDSTransportType for more information.
  

 

Return Value

 

A GDSData object.

 

Remarks

 

The CreateReplica method can be used to create and download a child replica containing a spatial subset of data from a specified set of datasets. Only datasets that are accessible by the database user associated with the GeoDataServer can be replicated.   The data to be extracted is specified by a ReplicaDescription object. A separate attribute query can be applied to each table or feature class. Related records may be fetched.  The CreateReplica method can be used to create CheckOut, OneWay or TwoWay replicas.

 

Examples

C#

VB.NET

Java