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

◆ lwline_length_2d()

double lwline_length_2d ( const LWLINE line)

Definition at line 517 of file lwline.c.

518{
519 if ( lwline_is_empty(line) )
520 return 0.0;
521 return ptarray_length_2d(line->points);
522}
double ptarray_length_2d(const POINTARRAY *pts)
Find the 2d length of the given POINTARRAY (even if it's 3d)
Definition ptarray.c:1708
int lwline_is_empty(const LWLINE *line)
POINTARRAY * points
Definition liblwgeom.h:469

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

Referenced by lwgeom_length_2d(), and test_lwline_from_lwmpoint().

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