PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcircstring_removepoint()

LWCIRCSTRING * lwcircstring_removepoint ( LWCIRCSTRING curve,
uint32_t  index 
)

Definition at line 247 of file lwcircstring.c.

References lwcircstring_construct(), LWCIRCSTRING::points, ptarray_removePoint(), and LWCIRCSTRING::srid.

248 {
249  POINTARRAY *newpa;
250  LWCIRCSTRING *ret;
251 
252  newpa = ptarray_removePoint(curve->points, index);
253  ret = lwcircstring_construct(curve->srid, NULL, newpa);
254 
255  return ret;
256 }
int32_t srid
Definition: liblwgeom.h:443
POINTARRAY * points
Definition: liblwgeom.h:444
POINTARRAY * ptarray_removePoint(POINTARRAY *pa, uint32_t where)
Remove a point from a pointarray.
Definition: ptarray.c:557
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:51
Here is the call graph for this function: