Summary
Enriches data by adding demographic and landscape facts about the people and places that surround or are inside data locations. The output is a duplicate of your input with additional attribute fields. This tool requires an ArcGIS Online organizational account or a locally installed Business Analyst dataset.
The demographic and landscape information available with this tool can come from ArcGIS Online or locally installed Business Analyst data. The Enrich tool will consume credits if ArcGIS Online is set as the Business Analyst data source.
Note:
The Enrich tool uses detailed aggregation and apportionment settings to summarize data. For more information, see Data apportionment.
Illustration
Usage
You must be signed in to ArcGIS Online or have Business Analyst Data installed.
The output is a copy of all features and attributes from the input with selected attributes appended.
Business Analyst Data, used in summarizations and reports, is specified through the geoprocessing Data Source environment setting.
If connected to ArcGIS Online, the Enrich tool supports dynamic travel modes when using points as input features. Travel modes are used to build polygons, such as drive times or walk times, and are then enriched with data. For more information, see Travel modes.
Syntax
arcpy.analysis.Enrich(in_features, out_feature_class, variables, {buffer_type}, {distance}, {unit})
Parameter | Explanation | Data Type |
in_features | The features to be enriched. | Feature Layer |
out_feature_class | A new layer containing both the input attributes and user-selected attributes. User-selected attributes are summarized from underlying demographic boundaries. Only the area inside the input boundary is considered. | Feature Class |
variables [variables,...] | The variables to be summarized and added to the output feature class. | String |
buffer_type (Optional) | Input point features must have an associated boundary polygon to enrich. When connected to ArcGIS Online, travel mode options are dynamically populated. Input line features can only use Straight Line distance. The default value is Straight Line. | String |
distance (Optional) | Determines the distance or size of an area to enrich (for example, a 1-mile buffer or 5-minute walk time). Units correspond to the buffer type. The default value is 1. | Double |
unit (Optional) | The units associated with the distance or time parameter.
| String |
Code sample
The following Python window script demonstrates how to use the Enrich tool.
import arcpy
arcpy.Enrich_analysis("City", r"C:\temp\Data.gdb\City_Enrich",
"populationtotals.totpop_cy")
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes