获得 Business Analyst 许可后可用。
描述
Creates trade areas based on predefined named statistical areas. This tool does not consume credits.
插图
使用方法
Standard geographies are trade areas based on standardized administrative boundaries. In the United States, this includes layers such as states, counties, ZIP Codes, block groups, census tracts, core-based statistical areas (CBSA), designated market areas (DMA), or places. Each country dataset offers administrative boundaries that can vary. Individual trade areas are created for each unique geography—for example, each state, or each ZIP Code that you select.
One layer can contain several trade areas—for example, one whole layer containing a collection of counties.
-
The list of IDs must be in a table or list format.
The table can be in any format supported by ArcGIS Pro—for example, a comma- or tab-delimited text (.txt) file or Excel file.
For the list format, the list of IDs must separated by commas.
The geography ID for the entire country trade area is 01.
When the Input Type parameter is set to Table, the associated Geography Key Field parameter must be a text field.
语法
StandardGeographyTA(geography_level, out_feature_class, {input_type}, {in_ids_table}, {geography_key_field}, {ids_list}, {summarize_duplicates}, {group_field}, {dissolve_output})
参数 | 说明 | 数据类型 |
geography_level | Geography level that will be used to define your trade area. | String |
out_feature_class | Output feature containing your trade area. | Feature Class |
input_type (可选) | Specifies a list or table of geography IDs.
| String |
in_ids_table (可选) | Input table with IDs used to select geographies that will define your trade area. | Table View |
geography_key_field (可选) | Field within Geography IDs Table that identifies records to include in the output. | Field |
ids_list (可选) | List of comma-separated geography IDs. | String |
summarize_duplicates (可选) | Specifies how to handle duplicate fields in the table containing matching geography IDs.
| Boolean |
group_field (可选) | The field that is used to perform a group by operation. | Field |
dissolve_output (可选) | Dissolves the output based on the selected group_field.
| Boolean |
代码示例
The following Python window script demonstrates how to use the StandardGeographyTA tool.
import arcpy
arcpy.ba.StandardGeographyTA("US.ZIP5", r"C:\Temp\Output.gdb\StdGeogTradeAreas",
None, None, "92111,92117,92122", "USE_FIRST", None,
"DISSOLVE")
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst