PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcircstring_addpoint()

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

Definition at line 233 of file lwcircstring.c.

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

234 {
235  POINTARRAY *newpa;
236  LWCIRCSTRING *ret;
237 
238  newpa = ptarray_addPoint(curve->points,
239  getPoint_internal(point->point, 0),
240  FLAGS_NDIMS(point->flags), where);
241  ret = lwcircstring_construct(curve->srid, NULL, newpa);
242 
243  return ret;
244 }
int32_t srid
Definition: liblwgeom.h:443
POINTARRAY * point
Definition: liblwgeom.h:411
POINTARRAY * ptarray_addPoint(const POINTARRAY *pa, uint8_t *p, size_t pdims, uint32_t where)
Add a point in a pointarray.
Definition: ptarray.c:504
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
Definition: ptarray.c:1753
uint8_t flags
Definition: liblwgeom.h:408
POINTARRAY * points
Definition: liblwgeom.h:444
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:51
Here is the call graph for this function: