Skip To Content

XY Table To Point


Creates a new point feature class based on x- , y- , and z-coordinates from a table.


  • The standard delimiter for tabular text files with extensions .csv or .txt is a comma, and for files with a .tab extension, a tab. To use an input table with a nonstandard delimiter, you must first specify the correct delimiter used in the table using a schema.ini file.

  • The default coordinate system of the output feature class is the geographic coordinate system WGS 1984. If the fields in the source table contain projected coordinates, specify the appropriate projected coordinate system.

  • When a Z Field is specified, the default coordinate system also includes the vertical coordinate system WGS 1984. If the z-values are not in meters, modify the coordinate system to use the correct elevation unit.

  • If any of the input x- or y- (or z- if specified) coordinates for a feature are null or non-numeric values, the corresponding feature will be a null geometry. The Check Geometry tool can be used to check for null geometries in the output.

  • The tool will create point features for all valid records in the input table, even when the table has a selection. If only a subset of records should be used, use the Copy Rows tool to copy the selected records to a new table, and use the new table as input.


XYTableToPoint(in_table, out_feature_class, x_field, y_field, {z_field}, {coordinate_system})
ParameterExplanationData Type

The table containing the x- and y-coordinates that define the locations of the point features to create.

Table View

The feature class containing the output point features.

Feature Class

The field in the input table that contains the x-coordinates (or longitude).


The field in the input table that contains the y-coordinates (or latitude).


The field in the input table that contains the z-coordinates.


The coordinate system of the x- and y-coordinates. This will be the coordinate system of the output feature class.

Spatial Reference

Code sample

XYTableToPoint example (Python window)

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

import arcpy
arcpy.env.workspace = r"c:\output.gdb""c:\data\tree.csv", "tree_points",
                                "longitude", "latitude", "elevation",
                                arcpy.SpatialReference(4759, 115700))
XYTableToPoint example 2 (stand-alone script)

The following stand-alone Python script demonstrates how to use the XYTableToPoint tool.

# Description: Creates a point feature class from input table

# import system modules 
import arcpy

# Set environment settings
arcpy.env.workspace = r"c:\output.gdb"

# Set the local variables
in_table = r"c:\data\tree.csv"
out_feature_class = "tree_points"
x_coords = "longitude"
y_coords = "latitude"
z_coords = "elevation"

# Make the XY event layer..., out_feature_class,
                                x_coords, y_coords, z_coords,
                                arcpy.SpatialReference(4759, 115700))

# Print the total rows

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics