How To: Create connection lines between two points
The instructions provided describe how to create connection lines between two points in ArcMap. For example, seismic lines data spreadsheet usually consists of start and end point locations, representing the seismic lines to be shot in a survey. In ArcMap, it is possible to generate a set of lines from these points using the XY To Line tool.
To ensure the lines that generated in ArcMap are accurately located, the attribute table must contain the latitude and longitude of the start and end point features, as illustrated in the example below.
Note: Refer to How To: Calculate latitude and longitude for point features for instructions to extract the latitute and longitude values of point layers before using the XY To Line tool.
Follow the steps below to create connection lines between two points on a map.
- Insert the XY data into ArcMap.
- Select the correct coordinate system and X and Y Fields.
- Right-click the particular layer in the data table, and select Display XY Data.
- Select the X and Y values in the X and Y Fields.
- Click Edit to define a correct coordinate system.
- Click OK twice. The points are now added to the map as a layer in the Table of Contents.
- Save the points permanently.
- Right-click the event layer, and select Data > Export Data.
- Click the Browse button to select a location and name for the new file.
- Set the file type as shapefile or feature class.
- Click Save, and click OK.
- Go to ArcToolbox > Data Management Tools > Features > XY to Line.
- Using the new shapefile or feature class created in Step 2, enter in the Start X Field, Start Y Field, End X Field, and End Y Field of the table.
- Run the XY to Line tool.
- ArcMap: XY To Line
- ArcMap: Creating new lines from points
- ArcMap: Adding x,y coordinate data as a layer
- How To: Create connection lines between a point and a line
- How To: Create a polygon from an XY data table
- How To: Import XY data to ArcMap and convert the data to shapefile or feature class at ArcMap 10.1 and later versions
Last Published: 7/29/2022
Article ID: 000012092
Software: ArcGIS for Desktop Advanced 10.2.2, 10.2.1, 10.2, 10.1 ArcGIS for Desktop Basic 10.2.2, 10.2.1, 10.2, 10.1 ArcGIS for Desktop Standard 10.2.2, 10.2.1, 10.2, 10.1 ArcGIS-ArcEditor 10 ArcGIS-ArcInfo 10 ArcGIS-ArcView 10