Add XY Coordinates (Coverage)

License Level:BasicStandardAdvanced

Summary

Adds the items X-COORD and Y-COORD for labels or points to the input coverage PAT, or for nodes to the input coverage NAT, and calculates their values.

The tool determines the feature classes of the input coverage and lists those available to which x,y coordinates can be added. The tool is most commonly used to gain access to a coverage's geometry to perform queries and analysis or to extract points or nodes based on their x,y location.

Illustration

Add XY illustration

Usage

Syntax

AddXY_arc (in_cover, {feature_type})
ParameterExplanationData Type
in_cover

The coverage containing points or polygon labels whose x,y coordinates will become attributes in the PAT, or in the coverage containing nodes, to the NAT.

Coverage
feature_type
(Optional)

Type of coverage feature whose x,y coordinates will become feature attributes.

  • POINTPoint feature coordinates to be added to the PAT including label points. This is the default option.
  • NODENode feature coordinates to be added to the NAT.
String

Code Sample

AddXY example (stand-alone script)

The following stand-alone script demonstrates how to add X-COORD and Y-COORD items to a coverage's PAT. The items are populated with the coordinate values from the coverage's point features.

# Name: AddXY_Example.py
# Description: Adds X and Y coordinates to a coverage's point attribute table
# Requirements: ArcInfo Workstation

# Import system modules
import arcinfo
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "wells"
featureType = "POINT"

#Execute AddXY
arcpy.AddXY_arc(inCover, featureType)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed
3/3/2014