CURVEPOLYTYPE.
648{
651 return NULL;
654 uint32_t i;
655
656
657 if ( ngeoms == 0 )
658 return cp;
659
660 for ( i = 0; i < ngeoms; i++ )
661 {
664 {
667 lwerror(
"Unable to add geometry (%p) to curvepoly (%p)", geom, cp);
668 return NULL;
669 }
670 }
671
672 return cp;
673}
void lwgeom_free(LWGEOM *geom)
LWCURVEPOLY * lwcurvepoly_construct_empty(int32_t srid, char hasz, char hasm)
int lwcurvepoly_add_ring(LWCURVEPOLY *poly, LWGEOM *ring)
Add a ring, allocating extra space if necessary.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static uint32_t integer_from_wkb_state(wkb_parse_state *s)
Int32 Read 4-byte integer and advance the parse state forward.
LWGEOM * lwgeom_from_wkb_state(wkb_parse_state *s)
Internal function declarations.