Definition at line 585 of file lwin_wkt.c.
References CIRCSTRINGTYPE, COMPOUNDTYPE, LWGEOM::flags, FLAGS_NDIMS, global_parser_result, LINETYPE, LW_FAILURE, LW_PARSER_CHECK_CLOSURE, LW_PARSER_CHECK_MINPOINTS, lwcircstring_is_closed(), lwcompound_is_closed(), lwcurvepoly_add_ring(), LWDEBUG, lwgeom_as_lwcircstring(), lwgeom_as_lwcompound(), lwgeom_as_lwcurvepoly(), lwgeom_as_lwline(), lwgeom_count_vertices(), lwgeom_free(), lwline_is_closed(), struct_lwgeom_parser_result::parser_check_flags, PARSER_ERROR_MIXDIMS, PARSER_ERROR_MOREPOINTS, PARSER_ERROR_OTHER, PARSER_ERROR_UNCLOSED, SET_PARSER_ERROR, and LWGEOM::type.
Referenced by wkt_parser_curvepolygon_new(), and yyparse().
590 if( ! (ring && poly) )
600 LWDEBUG(4,
"dimensionality does not match");
610 int vertices_needed = 3;
617 LWDEBUG(4,
"number of points is incorrect");
629 LWDEBUG(4,
"checking ring closure");
630 switch ( ring->
type )
646 LWDEBUG(4,
"ring is not closed");
656 LWDEBUG(4,
"failed to add ring");
#define LW_PARSER_CHECK_MINPOINTS
Parser check flags.
void lwgeom_free(LWGEOM *geom)
LWCURVEPOLY * lwgeom_as_lwcurvepoly(const LWGEOM *lwgeom)
#define LWDEBUG(level, msg)
int lwcompound_is_closed(const LWCOMPOUND *curve)
LWGEOM_PARSER_RESULT global_parser_result
#define PARSER_ERROR_MIXDIMS
int lwcircstring_is_closed(const LWCIRCSTRING *curve)
#define PARSER_ERROR_MOREPOINTS
LWCOMPOUND * lwgeom_as_lwcompound(const LWGEOM *lwgeom)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
LWCIRCSTRING * lwgeom_as_lwcircstring(const LWGEOM *lwgeom)
#define PARSER_ERROR_UNCLOSED
int lwline_is_closed(const LWLINE *line)
#define SET_PARSER_ERROR(errno)
int lwcurvepoly_add_ring(LWCURVEPOLY *poly, LWGEOM *ring)
Add a ring, allocating extra space if necessary.
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
#define FLAGS_NDIMS(flags)
#define LW_PARSER_CHECK_CLOSURE
#define PARSER_ERROR_OTHER