Dynamic Update XY (Aeronautical)
Zusammenfassung
Automatically updates either the geometry or specified X, Y coordinate attributes for point feature classes. This enables you to synchronize geometry and coordinate attribute edits made on point features, and is meant to be used within existing data editing or creation workflows.
If you create a point feature class from X, Y coordinates then move a point, the original X, Y attributes do not update with this change. In reverse, if you edit attribute coordinates the associated feature point does not move. Essentially, the attribute coordinates in the attribute table may not always be in synch with the feature geometry, and this tool automatically updates and synchronizes your existing features.
Verwendung
-
You need to define the settings that will determine which feature classes and fields will participate in the dynamic updates before running this tool.
This tool always runs in foreground mode. If you run this tool with Background Processing checked on, the tool will automatically switch to foreground processing.
Syntax
Parameter | Erläuterung | Datentyp |
input_feature_class_list [input_feature_class_list,...] |
The feature classes to be updated. | String |
input_update_method |
The update method you want to use.
| String |
input_update_priority |
Determines if the geometry or attribute values have priority.
| String |
Codebeispiel
The following Python window script demonstrates a use of the DynamicUpdateXY function.
# Input_Feature_Classes must be set in the Dynamic Update XY Settings in Set Tool Options # in Production Properties Input_Feature_Classes = "ASP_PD.DBO.ADHPSurfacePoint;ASP_PD.DBO.Obstacle" # keywords Update_Method = "Full Extent" Update_Priority = "Update to Geometry" # Import the toolbox - you may have to alter this path arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Aeronautical Tools.tbx') # Exec Dynamic Update XY arcpy.DynamicUpdateXY_Aeronautical(Input_Feature_Classes, Update_Method, Update_Priority)