Calculate Field (GeoAnalytics Server Tools)
Summary
Creates a layer with calculated field values.
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 geoprocessing tool is available with ArcGIS Enterprise 10.6 or later.
Calculate Field is completed on tables or point, line, or polygon features.
Calculate Field will always create a layer. It will not modify the input. You can only calculate values for a single field at a time.
You can calculate values for an existing field or for a new field you add by creating a unique field name.
Expressions are created using Arcade expressions.
Learn more about GeoAnalytics Server Arcade expressions with Calculate Field
Arcade expressions can be track aware. Track-aware expressions require that data is time enabled and of time type instant and that a track field is specified. To learn more about building track-aware expressions, see Track aware examples.
To include a track-aware calculation, you must do the following:
Use a layer that is time enabled and of time type instant.
Check the Track Aware check box.
Select the fields used to identify tracks.
Tracks are represented by the unique combination of one or more track fields. For example, if the
flightIDandDestinationfields are used as track identifiers, theID007,SoldenandID007,Tokyofeatures would be in two separate tracks, since they have different values for theDestinationfield.Applying a time interval boundary segments tracks at a defined interval. For example, if you set the time interval boundary to 1 day, starting at 9:00 a.m on January 1, 1990, each track will be truncated at 9:00 a.m. every day and analyzed within that segment. This split accelerates computing time, as it creates smaller tracks for analysis. If splitting by a recurring time interval boundary makes sense for the analysis, it is recommended for big data processing. The analysis must be track aware to set a time boundary.
In addition to the calculated field, the output may include the following new field types:
ObjectID
GlobalID—If results are stored in the spatiotemporal data store.
datetime—If results are temporally enabled. The new fields are
instant_datetimefor time type instant, andstart_datetimeandend_datetimefor time type interval.
You can improve performance of the Calculate Field tool by doing one or more of the following:
Set the extent environment so that you only analyze data of interest.
If you are using tracks, split the tracks using the Time Boundary Split parameter.
Only select Track Aware if the expression includes a track expression.
Use data that is local to where the analysis is being run.
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
Similar analysis can also be completed using the following:
- The Calculate Field tool in the Data Management toolbox
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Layer |
The input features that will have a field calculated. |
Record Set |
|
Output Name |
The name of the output feature service. |
String |
|
Field Name |
The name of the field that will have values calculated. This can be an existing field or a new field. |
String |
|
Field Type |
Specifies the field type for the calculated field.
|
String |
|
Expression |
Calculates values in the field. Expressions are written in Arcade and can include [+ - * / ] operators and multiple fields. Calculated values are applied in the units of the spatial reference of the input unless you are using a geographic coordinate system, in which case they will be in meters. If the layer is added to the map, the Fields and Helpers filters can be used to build an expression. |
Calculator Expression |
|
Track Aware (Optional) |
Specifies whether the expression will use a track-aware expression.
|
Boolean |
|
Track Fields |
One or more fields that will be used to identify unique tracks. |
Field |
|
Data Store (Optional) |
Specifies the ArcGIS Data Store where the output will be stored. All 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.
|
String |
|
Time Boundary Split (Optional) |
A time span to split the input data into for analysis. A time boundary allows you to analyze values within a defined time span. For example, if you use a time boundary of 1 day, starting on January 1, 1980, tracks will be split at the beginning of every day. This parameter is only available with ArcGIS Enterprise 10.7 and later. |
Time Unit |
|
Time Boundary Reference (Optional) |
The reference time used to split the input data into for analysis. Time boundaries will be created for the entire span of the data, and the reference time does not need to occur at the start. If no reference time is specified, January 1, 1970, is used. This parameter is only available with ArcGIS Enterprise 10.7 and later. |
Date |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Table |
The new output with calculated values. |
Record Set |
Environments
Output Coordinate System, Extent, Current Workspace
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
Available with ArcGIS Enterprise 10.6 - Standard: Requires ArcGIS GeoAnalytics Server
Available with ArcGIS Enterprise 10.6 - Advanced: Requires ArcGIS GeoAnalytics Server
Available with ArcGIS Enterprise 10.6