PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwline_length()

double lwline_length ( const LWLINE line)

Definition at line 523 of file lwline.c.

524{
525 if ( lwline_is_empty(line) )
526 return 0.0;
527 return ptarray_length(line->points);
528}
int lwline_is_empty(const LWLINE *line)
double ptarray_length(const POINTARRAY *pts)
Find the 3d/2d length of the given POINTARRAY (depending on its dimensionality)
Definition ptarray.c:2003
POINTARRAY * points
Definition liblwgeom.h:483

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

Referenced by lwgeom_length().

Here is the call graph for this function:
Here is the caller graph for this function: