Definition at line 35 of file lwcompound.c.
36{
37 size_t size;
38 int npoints=0;
39
41 {
43 }
44 else
45 {
47 }
48
50 {
51 npoints = ((
LWCIRCSTRING *)compound->geoms[compound->ngeoms - 1])->points->npoints;
52 }
53 else if (compound->geoms[compound->ngeoms - 1]->
type ==
LINETYPE)
54 {
55 npoints = ((
LWLINE *)compound->geoms[compound->ngeoms - 1])->points->npoints;
56 }
57
60 npoints - 1),
61 size) )
62 {
64 }
65
67}
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
#define LW_TRUE
Return types for functions with status returns.
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
References CIRCSTRINGTYPE, LWGEOM::data, LWCOMPOUND::geoms, getPoint_internal(), LINETYPE, LW_FALSE, LW_TRUE, lwgeom_has_z(), LWCOMPOUND::ngeoms, and LWGEOM::type.
Referenced by lwgeom_is_closed(), test_isclosed(), and wkt_parser_curvepolygon_add_ring().