Shape_Length attribute take into account the elevation? For instance, if I have 3 points:
A.X = 10 A.Y = 10 A.Z = 10 B.X = 10 B.Y = 10 B.Z = 50 C.X = 0 C.Y = 0 C.Z = 10
Then I create two lines:
L1.fromPoint = A L1.toPoint = C L2.fromPoint = B L2.toPoint = C
What I am observing in the results is that the
SHAPE_Length attribute is the same for both
L2. I have verified that all the points and all the polylines are ZAware.
So, am I wrong to assume the
SHAPE_Length attribute takes into account the Z of the shapes?
UPDATE: I have no problem storing the Z Values or manipulating them. I am using IPolyline.
UPDATE 2: Apparently if you have 3D Analyst the SHAPE_Length does include the Z value. If not, it is strictly XY. IF that is the case is there a way in .NET ArcObjects to update the SHAPE_Length field to include the Z value in the calculation? Is there anything I need to do or watch out for when manually updating this attribute?
UPDATE 3: From what I’ve been hearing, SHAPE_Length is 2D only and isn’t editable.