Copy To Data Store (GeoAnalytics)

Summary

Copies features from the input to a new feature service in your portal.

Legacy:

The ArcGIS GeoAnalytics Server extension is being deprecated in ArcGIS Enterprise. The final release of GeoAnalytics Server was included with ArcGIS Enterprise 11.3. This geoprocessing tool is available through ArcGIS Enterprise 11.3 and earlier versions.

Usage

  • This tool writes results to ArcGIS Data Store, either the spatiotemporal data store or relational data store.

  • This geoprocessing tool is powered by ArcGIS GeoAnalytics Server. Analysis is completed on GeoAnalytics Server, and results are stored in your content in ArcGIS Enterprise.

  • When running GeoAnalytics Server tools, the analysis is completed on GeoAnalytics Server. For optimal performance, make data available to GeoAnalytics Server through feature layers hosted on your ArcGIS Enterprise portal or through big data file shares. Data that is not local to GeoAnalytics Server will be moved to GeoAnalytics Server before analysis begins. This means that it will take longer to run a tool and, in some cases, moving the data from ArcGIS Pro to GeoAnalytics Server may fail. The threshold for failure depends on your network speeds, as well as the size and complexity of the data. It is recommended that you always share your data or create a big data file share.

    Learn more about sharing data to your portal

    Learn more about creating a big data file share through Server Manager

Parameters

LabelExplanationData Type
Input Layer

The features that will be copied.

When running GeoAnalytics Server tools, the analysis is completed on GeoAnalytics Server. For optimal performance, make data available to GeoAnalytics Server through feature layers hosted on your ArcGIS Enterprise portal or through big data file shares. Data that is not local to GeoAnalytics Server will be moved to GeoAnalytics Server before analysis begins. This means that it will take longer to run a tool and, in some cases, moving the data from ArcGIS Pro to GeoAnalytics Server may fail. The threshold for failure depends on your network speeds, as well as the size and complexity of the data. It is recommended that you always share your data or create a big data file share.

Record Set
Output Name

The name of the output feature service.

String
Data Store
(Optional)

The ArcGIS Data Store where the output will be stored. Results stored in a spatiotemporal big data store will be stored in WGS84. Results stored in a will maintain their coordinate system.

  • Spatiotemporal big data storeThe output will be stored in a spatiotemporal big data store. This is the default.
  • Relational data storeThe output will be stored in a relational data store.
String

Derived Output

LabelExplanationData Type
Output Feature Class

The new feature service in your portal.

Feature Set

arcpy.geoanalytics.CopyToDataStore(input_layer, output_name, {data_store})
NameExplanationData Type
input_layer

The features that will be copied.

Record Set
output_name

The name of the output feature service.

String
data_store
(Optional)

The ArcGIS Data Store where the output will be stored. Results stored in a spatiotemporal big data store will be stored in WGS84. Results stored in a relational data store will maintain their coordinate system.

  • SPATIOTEMPORAL_DATA_STOREThe output will be stored in a spatiotemporal big data store. This is the default.
  • RELATIONAL_DATA_STOREThe output will be stored in a relational data store.
String

Derived Output

NameExplanationData Type
output

The new feature service in your portal.

Feature Set

Code sample

CopyToDataStore (Python window)

The following Python window script demonstrates how to use the CopyToDataStore function.

#-------------------------------------------------------------------------------
# Name: CopyToDataStore.py
# Description: Copy the Abandoned Water Line dataset to the relational data store
#				Results will be displayed in your portal

# Requirements: ArcGIS GeoAnalytics Server

# Import system modules
import arcpy

# Set local variables
inFeatures = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Water_Network/FeatureServer/3"
outFS = "AbandonedWater"
dataStore = "RELATIONAL_DATA_STORE"

# Run Copy to Data Store
arcpy.geoanalytics.CopyToDataStore(inFeatures, outFS, dataStore)

Environments

Special cases

Output Coordinate System

The coordinate system that will be used for analysis. Analysis will be completed in the input coordinate system unless specified by this parameter. For GeoAnalytics Tools, final results will be stored in the spatiotemporal data store in WGS84.

Licensing information

  • Basic: Requires ArcGIS GeoAnalytics Server
  • Standard: Requires ArcGIS GeoAnalytics Server
  • Advanced: Requires ArcGIS GeoAnalytics Server

Related topics