PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwcircstring_removepoint()

LWCIRCSTRING * lwcircstring_removepoint ( LWCIRCSTRING curve,
uint32_t  index 
)

Definition at line 240 of file lwcircstring.c.

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

241 {
242  POINTARRAY *newpa;
243  LWCIRCSTRING *ret;
244 
245  newpa = ptarray_removePoint(curve->points, index);
246  ret = lwcircstring_construct(curve->srid, NULL, newpa);
247 
248  return ret;
249 }
int32_t srid
Definition: liblwgeom.h:445
POINTARRAY * points
Definition: liblwgeom.h:446
POINTARRAY * ptarray_removePoint(POINTARRAY *pa, uint32_t where)
Remove a point from a pointarray.
Definition: ptarray.c:555
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:50
Here is the call graph for this function: