PostGIS  2.3.7dev-r@@SVN_REVISION@@
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:442
POINTARRAY * point
Definition: liblwgeom.h:410
POINTARRAY * ptarray_addPoint(const POINTARRAY *pa, uint8_t *p, size_t pdims, uint32_t where)
Add a point in a pointarray.
Definition: ptarray.c:509
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
Definition: ptarray.c:1706
uint8_t flags
Definition: liblwgeom.h:407
POINTARRAY * points
Definition: liblwgeom.h:443
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:51

Here is the call graph for this function: