PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ lwcircstring_addpoint()

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

Definition at line 226 of file lwcircstring.c.

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

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 }
int32_t srid
Definition: liblwgeom.h:445
POINTARRAY * point
Definition: liblwgeom.h:413
POINTARRAY * ptarray_addPoint(const POINTARRAY *pa, uint8_t *p, size_t pdims, uint32_t where)
Add a point in a pointarray.
Definition: ptarray.c:503
uint8_t flags
Definition: liblwgeom.h:410
uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
Definition: ptarray.c:1743
POINTARRAY * points
Definition: liblwgeom.h:446
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:50
Here is the call graph for this function: