CURVEPOLYTYPE.
649{
652 return NULL;
655 uint32_t i;
656
657
658 if ( ngeoms == 0 )
659 return cp;
660
663 {
665 lwerror(
"Geometry has too many chained curves");
666 return NULL;
667 }
668 for ( i = 0; i < ngeoms; i++ )
669 {
672 {
675 lwerror(
"Unable to add geometry (%p) to curvepoly (%p)", (
void *) geom, (
void *) cp);
676 return NULL;
677 }
678 }
680
681 return cp;
682}
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 void lwerror(const char *fmt,...) __attribute__((format(printf
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.
#define LW_PARSER_MAX_DEPTH
Max depth in a geometry.
LWGEOM * lwgeom_from_wkb_state(wkb_parse_state *s)
Internal function declarations.