获得 Business Analyst 许可后可用。
描述
Joins external variables to the Territory Solution by spatial intersection.
使用方法
Any Integer, SmallInteger, Double and Single field from an importing table can be used as in_variables.
语法
arcpy.td.ImportVariablesBySpatialJoin_TD(in_territory_solution_layer, in_layer, in_variables)
参数 | 说明 | 数据类型 |
in_territory_solution_layer | The Territory Solution layer to which to import variables. | GP TD Layer |
in_layer | The Source layer from which to import variables. | Feature Layer |
in_variables [in_variables,...] | The Set of fields to import from the input table. | Field |
代码示例
ImportVariablesBySpatialJoin_TD example (Python window)
The following Python window script demonstrates how to use the tool in immediate mode.
import arcgisscripting
gp = arcgisscripting.create()
gp.ImportVariablesBySpatialJoin_TD("new layer", "C:/layer.lyr", "AREA;TOTPOP_CY")
ImportVariablesBySpatialJoin_TD example 2 (stand-alone script)
The following stand-alone script demonstrates how to use the tool.
# Import system modules
import arcgisscripting
gp = arcgisscripting.create()
# Set local variables
solution = "new layer"
layer = "C:/layer.lyr"
variables = "AREA;TOTPOP_CY"
# Execute tool
gp.ImportVariablesBySpatialJoin_TD(solution, layer, variables)
环境
此工具不使用任何地理处理环境。
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst