ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Create Index Table

  • Resumen
  • Uso
  • Sintaxis
  • Muestra de código
  • Entornos
  • Información de licenciamiento

Resumen

The Create Index Table tool produces a map index table from a series of feature classes. For example, this tool could produce a table of cities and counties in which a set of streets are located. You can embed this table as a surround element in an ArcGIS page layout.

Uso

  • The tool performs a union between the Input Features (in_index_features) and the Overlay Features (in_overlay_features). The output of the union is generalized by values chosen in the Join option of Overlay Features (in_overlay_features) and in the Feature Size Threshold Percentage (threshold) parameter.

  • Use a point, line, or polygon feature class as Input Features (in_index_features).

  • Use polygon feature classes as Overlay Features (in_overlay_features).

  • Select the attributes you want included in the resulting index data from Input Features (in_index_features).

  • You must convert annotation features to polygons using the Dissolve tool before you can index them.

Sintaxis

arcpy.production.CreateIndexTable(in_index_features, index_fields, in_overlay_features, out_table, {threshold})
ParámetroExplicaciónTipo de datos
in_index_features

The feature class used to create a table that contains index data.

Feature Layer
index_fields
[index_fields,...]

The attribute fields that you want to include in the output table. Each unique combination of field values will result in a unique record in the output table.

Field
in_overlay_features
[[Overlay Features, {Field}, {Join}],...]

The features against which you want to index the Input Features (in_index_features) parameter. For example, if you want to show a grid cell in which a city is located, you can add the grid cell's feature class to this parameter. The Join value in this parameter controls whether multiple resulting matches are joined by a comma-separated list or if each successful match results in a new record in the output table.

Licencia:

You can only specify one feature class when you run this tool using an ArcGIS Desktop Standard or ArcGIS Desktop Basic license.

Value Table
out_table

The output table that will contain the resulting index data.

Table
threshold
(Opcional)

The minimum size of a part of the index feature that will be included in the output table expressed as a percentage of the feature's total size (that is, length for lines and area for polygons). This parameter is used to prevent small portions of the index feature (for example, a small segment of a street located in a certain city) from being included in the output.

For example, if you set the parameter value to 5, portions of a street line that are less than 5 percent of the line's total length will be ignored in the output.

Long

Muestra de código

CreateIndexTable example (Python window)

The following Python window script demonstrates how to use the CreateIndexTable tool.

import arcpy

# set gp environment variables
arcpy.env.workspace="c:/data/Austin.gdb"
arcpy.env.overwriteOutput = True
arcpy.env.addOutputsToMap = False

# in_index_features parameter
roadL = "TopographicMap/RoadL"
roadLyr = "roadLayer"

# Create a fishnet to simulate a grid to use in the in_overlay_features parameter
overlayFeatures = "overlayFeatures"
overlayFeaturesLyr = "overlayFeatures_layer"
origin="-97.7500000098922 30.2499999994191"
yAxis="-97.7500000098922 40.2499999994191"
arcpy.CreateFishnet_management(overlayFeatures,origin, yAxis,"#","#","2","2","#","NO_LABELS",roadL,"POLYGON")

# add a field to the fishnet feature class and calc it
arcpy.AddField_management(overlayFeatures,"gridnumber","TEXT")
arcpy.CalculateField_management(overlayFeatures,"gridnumber","[OID]")

# add outputs to map for following operations
arcpy.env.addOutputsToMap = True

# Make Feature Layer for the in_index_features parameter
if arcpy.Exists(roadLyr) == False:
    arcpy.MakeFeatureLayer_management(roadL, roadLyr)

# Make Feature Layer for the in_overlayFeatures parameter
if arcpy.Exists(overlayFeaturesLyr) == False:
   arcpy.MakeFeatureLayer_management(overlayFeatures, overlayFeaturesLyr)

# output index table (created in the current workspace)
roadIndextable = "roadL_indextable"

# execute Create Index Table
arcpy.CreateIndexTable_production(roadLyr, "FCsubtype", overlayFeaturesLyr + " gridnumber true", roadIndextable, "10")

Entornos

  • Espacio de trabajo actual

Información de licenciamiento

  • Basic: No
  • Standard: Requiere Production Mapping
  • Advanced: Requiere Production Mapping

Temas relacionados

  • An overview of the Surround Elements toolset

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal