The Enrich Layer task enriches your data by getting facts about the people, places, and businesses that surround your data locations.
For example: What kind of people live here? What do people like to do in this area? What are their habits and lifestyles? What kind of businesses are there in this area?
The result will be a new layer containing all demographic and geographic information from given data collections. This new information is added as fields in the table.
Licensing
As described in the Get Started topic, in order to use any analysis task, the administrator of the organization needs to grant you certain basic privileges. To use the Enrich Layer task, you need to be granted the GeoEnrichment privilege. In addition, to enrich features based on one of the available travel modes, you need to be granted the Network Analysis privilege.
Request URL
http://<analysis url>/EnrichLayer/submitJob
Limits
There are limits to number of features and distance when buffer
is set to a travel mode other than "Straight
.
input
—Maximum 1,000 featuresLayer distance
—Maximum 300 minutes or 482.80 kilometers (300 miles)
Request Parameters
Parameter | Description |
---|---|
| The features to enrich with new data. Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
|
| This optional parameter defines the collections of data you want to use to enrich your features. Its value is a list of strings. If you don't provide this parameter, you must provide the For more information about data collections and the values for this parameter, visit the Esri Demographics site. Example:
|
| The parameter defines the specific variables within a data collection you want to use to enrich your features. Its value is a list of strings in the form of "dataCollection.VariableName". If you don't provide this parameter, you must provide the Example: "analysisVariables": ["KeyGlobalFacts.AVGHHSIZE", "KeyUSFacts.TOTPOP10", "KeyUSFacts.HINC100_CY_P"]` For more information about variables in data collections, visit the Esri Demographics site. Each data collection has a PDF file describing variables and their names. |
| This optional parameter further defines what is returned from data collection. For example, your input features may be countries in Western Europe, and you want to enrich them with the Example:
For more information about data collections and the values for this parameter, visit the Esri Demographics site. |
| If your input features are points or lines, you must define an area around your features that you want to enrich. Features that are within (or equal to) the distances you enter will be enriched. You can specify either straight-line distance or a travel mode. Valid values are a string, Travel modes are managed in ArcGIS Online and can be configured by the administrator of your organization to better reflect your organization's workflows. You must specify the JSON object containing the settings for a travel mode supported by your organization. To get a list of supported travel modes, run the When using a travel mode for the For example, the following is a string representing the Walking Time travel mode as returned by the
Convert the value above to a valid JSON object and pass it as the value for the
Example:
|
| A double value that defines the search distance or time. The units of the distance value is supplied by the units parameter. Example:
|
| The linear unit to be used with the distance value(s) specified in the distance parameter. If If Example:
|
| Applies only for point and line input features. If The default is Values: |
|
If provided, the task will create a feature service of the results. You define the name of the service. If an Syntax:
In ArcGIS Online or ArcGIS Enterprise 11.0 and later, you can overwrite an existing feature service by providing the Syntax:
or
|
| Context contains additional settings that affect task execution. For Enrich Layers, there are two settings.
|
| The response format. The default response format is Values: |
Response
When you submit a request, the service assigns a unique job ID for the transaction. Syntax:
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}
After the initial request is submitted you can use the jobId to periodically check the status of the job and messages as described in the topic Check job status. Once the job has successfully completed, you use the jobId to retrieve the results. To track the status, you can make a request of the following form:
http://<analysis url>/EnrichLayer/jobs/<jobId>
Accessing results
When the status of the job request is esri
, you can access the results of the analysis by making a request of the following form.
http://<analysis url>/EnrichLayer/jobs/<jobId>/results/enrichedLayer?token=<your token>&f=json
Parameter | Description |
---|---|
| If the Example:
The result has properties for parameter name, data type, and value. The contents of value depends upon the
See Feature Output for more information about how the result layer or collection is accessed. |