Generar regla de atributo relacionada con la actualización (Herramientas de administración de datos)
Resumen
Genera una regla de atributo que actualiza los registros relacionados en otras clases cuando se realizan actualizaciones en una tabla de entrada. Puede basarse en uno o varios de los siguientes elementos: asociaciones de redes de servicios, clases de relación, campos de coincidencia y relaciones espaciales.
Uso
Una vez ejecutada la herramienta, importe la regla de atributos y aplíquela al dataset. Si el dataset se encuentra en una geodatabase corporativa, usted debe ser el propietario de los datos para aplicar la regla de atributos de la plantilla de salida.
Si el valor del parámetro Tabla de entrada o el valor Capa de destino del parámetro Opciones de búsqueda no es una tabla o clase de red de servicios, el valor de Tipo de búsqueda no puede ser un tipo de asociación de red de servicios.
Si el valor del parámetro Tabla de entrada o el valor Capa de destino del parámetro Opciones de búsqueda es una tabla, el valor de Tipo de tabla no puede ser Solo espacial.
Si el valor del parámetro Tabla de entrada y el valor Capa de destino del parámetro Opciones de búsqueda no participan en una clase de relación entre sí, el valor de Tipo de búsqueda no puede ser Clase de relación.
La tabla o clase de entidad a la que se aplicará la nueva regla.
Table View
Carpeta de salida
La carpeta en la que se guarda la salida.
Folder
Opciones de búsqueda
Actualiza un valor relacionado en la capa de destino utilizando una asociación de red de servicios, una clase de relación, campos de correspondencia o una relación espacial entre la clase de entrada y cualquier clase de destino.
Columnas de la tabla de valores:
Target Layer—The layer to which the search option will be applied.
Target Field—The field in the target layer that will be updated by the attribute rule.
Search Type—The search type that will be applied to the input table and target table.
Relationship Class—A related value in the target class will be updated using a relationship class between the input class and any target classes.
Match Fields—A field in the target classes will be updated based on updates to a field in the input class based on a match field (primary or foreign key relationship).
Spatial Only—A field in a target layer will be updated based on the intersection between features from the input class and any output classes.
Connected (UN Association)—The features connected to the specified feature through a connectivity association will be returned.
Container (UN Association)—The features containing the specified feature through a containment association will be returned.
Content (UN Association)—The features containing the specified feature through a containment association will be returned.
Structure (UN Association)—The feature that the specified feature is attached to through a structural attachment association will be returned.
Attached (UN Association)—The features attached to the specified feature through a structural attachment association will be returned.
Junction Edge (UN Association)—The features connected to the specified feature through a junction-edge connectivity association will be returned.
Midspan (UN Association)—The features connected to the specified feature through a junction-edge midspan connectivity association will be returned.
Input Field or Value—The field or value that will be edited in the input class.
Operator—The method that will be used to relate the target and input fields.
Set Value—The value in the target field will be updated with the value from the input field.
Concatenate—The existing value in the target field will be updated by concatenating with the value in the source field. By default, the values will concatenated with a hyphen (-) character.
Bitwise Or—A bitwise operation will be performed on the existing value in the target field with the incoming value from the source field. Both the source and target fields must be numeric.
Search Distance—The maximum distance from an input feature that a target feature can be. Only features within this distance will be updated.
Target Match Fields—The foreign key field from the target class that links to the Input Match Field value in the input class.
Input Match Fields—The primary key field from the source class that links to the Target Match Field value in the target class.
Value Table
Expresión
Una expresión SQL que se utilizará para limitar las entidades de la entrada que participarán en la regla de atributo.
SQL Expression
Salida derivada
Etiqueta
Explicación
Tipo de datos
Archivo CSV de salida
Archivo .csv de salida que contiene la regla de atributos de la plantilla.
La tabla o clase de entidad a la que se aplicará la nueva regla.
Table View
out_folder
La carpeta en la que se guarda la salida.
Folder
search_options[search_options,...]
Actualiza un valor relacionado en la capa de destino utilizando una asociación de red de servicios, una clase de relación, campos de correspondencia o una relación espacial entre la clase de entrada y cualquier clase de destino.
Columnas de la tabla de valores:
Target Layer—The layer to which the search option will be applied.
Target Field—The field in the target layer that will be updated by the attribute rule.
Search Type—The search type that will be applied to the input table and target table.
RELATIONSHIP_CLASS—A related value in the target class will be updated using a relationship class between the input class and any target classes.
MATCH_FIELDS—A field in the target classes will be updated based on updates to a field in the input class based on a match field (primary or foreign key relationship).
SPATIAL_ONLY—A field in a target layer will be updated based on the intersection between features from the input class and any output classes.
UN_CONNECTED—The features connected to the specified feature through a connectivity association will be returned.
UN_CONTAINER—The features containing the specified feature through a containment association will be returned.
UN_CONTENT—The features containing the specified feature through a containment association will be returned.
UN_STRUCTURE—The feature that the specified feature is attached to through a structural attachment association will be returned.
UN_ATTACHED—The features attached to the specified feature through a structural attachment association will be returned.
UN_JUNCTION_EDGE—The features connected to the specified feature through a junction-edge connectivity association will be returned.
UN_MIDSPAN—The features connected to the specified feature through a junction-edge midspan connectivity association will be returned.
Input Field or Value—The field or value that will be edited in the input class.
Operator—The method that will be used to relate the target and input fields.
SET_VALUE—The value in the target field will be updated with the value from the input field.
CONCATENATE—The existing value in the target field will be updated by concatenating with the value in the source field. By default, the values will concatenated with a hyphen (-) character.
BITWISE_OR—A bitwise operation will be performed on the existing value in the target field with the incoming value from the source field. Both the source and target fields must be numeric.
Search Distance—The maximum distance from an input feature that a target feature can be. Only features within this distance will be updated.
Target Match Fields—The foreign key field from the target class that links to the Input Match Field value in the input class.
Input Match Fields—The primary key field from the source class that links to the Target Match Field value in the target class.
Value Table
where_clause
Una expresión SQL que se utilizará para limitar las entidades de la entrada que participarán en la regla de atributo.
SQL Expression
Salida derivada
Nombre
Explicación
Tipo de datos
out_rule_csv
Archivo .csv de salida que contiene la regla de atributos de la plantilla.
File
Muestra de código
Ejemplo de "GenerateUpdateRelatedAttributeRule" (ventana de Python)
El siguiente ejemplo muestra cómo utilizar la función GenerateUpdateRelatedAttributeRule.
import arcpy
arcpy.management.GenerateUpdateRelatedAttributeRule(
in_table="A_Table",
out_folder=r"C:/project/path/to/folder",
search_options="Test Field 'Match Fields' Field 'Set Value' '20 Feet' Field_1 Field_1"
)
Entornos
Esta herramienta no utiliza ningún entorno de geoprocesamiento.