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

◆ lwcircstring_is_closed()

int lwcircstring_is_closed ( const LWCIRCSTRING curve)

Definition at line 255 of file lwcircstring.c.

256{
257 if (lwgeom_has_z((LWGEOM*)curve))
258 return ptarray_is_closed_3d(curve->points);
259
260 return ptarray_is_closed_2d(curve->points);
261}
int ptarray_is_closed_3d(const POINTARRAY *pa)
Definition ptarray.c:723
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
Definition lwgeom.c:962
int ptarray_is_closed_2d(const POINTARRAY *pa)
Definition ptarray.c:710

References lwgeom_has_z(), LWCIRCSTRING::points, ptarray_is_closed_2d(), and ptarray_is_closed_3d().

Referenced by lwgeom_is_closed(), test_isclosed(), and wkt_parser_curvepolygon_add_ring().

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