PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcircstring_length_2d()

double lwcircstring_length_2d ( const LWCIRCSTRING circ)

Definition at line 288 of file lwcircstring.c.

References lwcircstring_is_empty(), LWCIRCSTRING::points, and ptarray_arc_length_2d().

Referenced by lwcircstring_length(), and lwgeom_length_2d().

289 {
290  if ( lwcircstring_is_empty(circ) )
291  return 0.0;
293  return ptarray_arc_length_2d(circ->points);
294 }
double ptarray_arc_length_2d(const POINTARRAY *pts)
Find the 2d length of the given POINTARRAY, using circular arc interpolation between each coordinate ...
Definition: ptarray.c:1665
Definition: liblwgeom.h:444
int lwcircstring_is_empty(const LWCIRCSTRING *circ)
Definition: lwcircstring.c:276
Here is the call graph for this function:
Here is the caller graph for this function: