PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwcircstring_addpoint()

LWCIRCSTRING * lwcircstring_addpoint ( LWCIRCSTRING curve,
LWPOINT point,
uint32_t  where 
)

Definition at line 226 of file lwcircstring.c.

227 {
228  POINTARRAY *newpa;
229  LWCIRCSTRING *ret;
230 
231  newpa = ptarray_addPoint(curve->points,
232  getPoint_internal(point->point, 0),
233  FLAGS_NDIMS(point->flags), where);
234  ret = lwcircstring_construct(curve->srid, NULL, newpa);
235 
236  return ret;
237 }
POINTARRAY * ptarray_addPoint(const POINTARRAY *pa, uint8_t *p, size_t pdims, uint32_t where)
Add a point in a pointarray.
Definition: ptarray.c:501
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:193
LWCIRCSTRING * lwcircstring_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:50
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
Definition: lwinline.h:67
int32_t srid
Definition: liblwgeom.h:494
POINTARRAY * points
Definition: liblwgeom.h:493
POINTARRAY * point
Definition: liblwgeom.h:457
lwflags_t flags
Definition: liblwgeom.h:459

References LWPOINT::flags, FLAGS_NDIMS, getPoint_internal(), lwcircstring_construct(), LWPOINT::point, LWCIRCSTRING::points, ptarray_addPoint(), and LWCIRCSTRING::srid.

Here is the call graph for this function: