PostGIS  2.3.7dev-r@@SVN_REVISION@@
double lwline_length_2d ( const LWLINE line)

Definition at line 586 of file lwline.c.

References lwline_is_empty(), LWLINE::points, and ptarray_length_2d().

Referenced by lwgeom_length_2d(), and test_lwline_from_lwmpoint().

587 {
588  if ( lwline_is_empty(line) )
589  return 0.0;
590  return ptarray_length_2d(line->points);
591 }
double ptarray_length_2d(const POINTARRAY *pts)
Find the 2d length of the given POINTARRAY (even if it's 3d)
Definition: ptarray.c:1645
int lwline_is_empty(const LWLINE *line)
Definition: lwline.c:525
POINTARRAY * points
Definition: liblwgeom.h:421

Here is the call graph for this function:

Here is the caller graph for this function: