HOW TO
When using the Python function for the Business Analyst Enrich Layer tool, the arcpy.ba.EnrichLayer function, it is not obvious from the documentation how to specify the method used to create an area around point geometries for apportionment of demographic data to the input study areas. This is specified in the buffer_type parameter, but when viewing the documentation, it is not immediately apparent what valid string values are, as seen in the following image.
There are two methods to determine this:
Copy as Python Snippet
Likely the easiest method is to:
Hence, if we select Rural Driving Time for the Define Areas to Enrich parameter in the Enrich Layer tool, once we copy this to the clipboard and paste it into a Python script, we can now see in the next image the correct value for the buffer_type parameter, Rural Driving Time.
View the Drop-down in ArcGIS Pro
Alternately, in the tool, when viewing the parameter options for Define areas to enrich, the available options are all valid values for the buffer_type parameter. Hence, this is a second way to discover valid values for scripting the Enrich Layer tool for using the arcpy.ba.EnrichLayer function.
Article ID: 000027218
Get help from ArcGIS experts
Download the Esri Support App