# Calculate geometry on some features have same X and Y for start and end?

I did "Calculate Geometry" on a line shapefile to obtain the coordinates X and Y for the start and the end of all the lines of the shape. But some lines resulted with the same X on the start and on the end, and the same Y on the start and on the end.

If the line is crossed by other line, the X and Y that results is the X and Y of the point where the line is crossed. So X,Y are the same because it's a point. My question now is why Calculate Geometry does that?

This is one of the affected lines: Thsi is another line and its properties • That's pretty simple actually, assuming your question is worded as intended. A line with the same X coordinate for both start and end is simply a vertical (longitudinal in GCS) line. One with the same Y coordinate is a horizontal (a latitude or parallel in GCS). If both are the same, per @DanC's answer then the line starts and ends at the same point (which may or may not be incorrect). Note that calc geometry lets you do start, end, and mid points on lines. It's not clear from your question exactly how you're doing things. – Chris W Apr 15 '15 at 20:36
• Can you share a screenshot of some of the affected lines, as well as the calculation results in the attribute table? – nmpeterson Apr 15 '15 at 21:41
• I've posted a screenshot of one of the affected lines – AndM Apr 16 '15 at 14:08
• How many vertices does that line have (you can find this by double-clicking it during an edit session and checking the Sketch Properties window)? If it had for example three, a start, out to a point, then doubled back to its origin, I can see that result. I can also see things getting weird if it is a multi-part feature. Would it be possible to post the shapefile or an export of some of the problem records anywhere? Have you run check geometery on the file to verify everything is valid? – Chris W Apr 16 '15 at 23:32
• That would require some vertex editing. Right now the reason it is multipart is you have two separate line segments represented as a single feature. You'd have to explode the feature and add a segment between wherever the two are disconnected, either as a new line or just adding another vertex to one with continue line, then merge it all back together. Or possibly delete one of the parts if it's just directly overlapping the larger part. – Chris W Apr 24 '15 at 18:07