ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Import Variables by Spatial Join

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Joins external variables to the Territory Solution by spatial intersection.

Usage

  • Any Integer, SmallInteger, Double and Single field from an importing table can be used as in_variables.

Syntax

ImportVariablesBySpatialJoin_TD_td (in_territory_solution_layer, in_layer, in_variables)
ParameterExplanationData Type
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

Code Sample

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)

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An Overview of the Setup Territory Solution Toolset
  • Create Territories
  • Create Territory Solution
  • Import Variables By Attribute Join
  • Import Territories From Database
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal