PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwcircstring_addpoint()

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

Definition at line 220 of file lwcircstring.c.

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

221 {
222  POINTARRAY *newpa;
223  LWCIRCSTRING *ret;
224 
225  newpa = ptarray_addPoint(curve->points,
226  getPoint_internal(point->point, 0),
227  FLAGS_NDIMS(point->flags), where);
228  ret = lwcircstring_construct(curve->srid, NULL, newpa);
229 
230  return ret;
231 }
int32_t srid
Definition: liblwgeom.h:427
POINTARRAY * point
Definition: liblwgeom.h:395
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:392
POINTARRAY * points
Definition: liblwgeom.h:428
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:136
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:38
Here is the call graph for this function: