Returns the length of a 3D LineString or MultiLineString, taking into account the z coordinates in the calculation.