Copy To Data Store (GeoAnalytics)

Summary

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

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 your GeoAnalytics Server, and results are stored in your content in ArcGIS Enterprise.

  • When running GeoAnalytics Server tools, the analysis is completed on the GeoAnalytics Server. For optimal performance, make data available to the GeoAnalytics Server through feature layers hosted on your ArcGIS Enterprise portal or through big data file shares. Data that is not local to your GeoAnalytics Server will be moved to your 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 your 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 feature to be copied.

When running GeoAnalytics Server tools, the analysis is completed on the GeoAnalytics Server. For optimal performance, make data available to the GeoAnalytics Server through feature layers hosted on your ArcGIS Enterprise portal or through big data file shares. Data that is not local to your GeoAnalytics Server will be moved to your 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 your 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

Name of output feature service.

String
Data Store
(Optional)

The ArcGIS Data Store to which the output will be saved. The default is Spatiotemporal big data store. All results stored to the Spatiotemporal big data store will be stored in WGS84. Results stored in a Relational data store will maintain their coordinate system.

  • Spatiotemporal big data storeOutput will be stored in your spatiotemporal big data store. This is the default.
  • Relational data storeOutput will be stored in your 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 to be copied.

Record Set
output_name

Name of output feature service.

String
data_store
(Optional)

The ArcGIS Data Store to which the output will be saved. The default is SPATIOTEMPORAL_DATA_STORE. All results stored to the SPATIOTEMPORAL_DATA_STORE will be stored in WGS84. Results stored in a RELATIONAL_DATA_STORE will maintain their coordinate system.

  • SPATIOTEMPORAL_DATA_STOREOutput will be stored in your spatiotemporal big data store. This is the default.
  • RELATIONAL_DATA_STOREOutput will be stored in your 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 tool.

#-------------------------------------------------------------------------------
# Name: CopyToDataStore.py
# Description: Copy 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"

# Execute 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