PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void cu_wkb_malformed_in ( char *  hex)
static

Definition at line 51 of file cu_in_wkb.c.

References struct_lwgeom_parser_result::errcode, struct_lwgeom_parser_result::geom, LW_FAILURE, lwgeom_parse_wkt(), and lwgeom_parser_result_free().

Referenced by test_wkb_in_malformed().

52 {
54  int rv = 0;
55 
56  rv = lwgeom_parse_wkt(&p, hex, 0);
57  CU_ASSERT( LW_FAILURE == rv );
58  CU_ASSERT( p.errcode );
59  CU_ASSERT( ! p.geom );
61 }
void lwgeom_parser_result_free(LWGEOM_PARSER_RESULT *parser_result)
Definition: lwin_wkt.c:825
#define LW_FAILURE
Definition: liblwgeom.h:54
int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int parse_flags)
Parse a WKT geometry string into an LWGEOM structure.
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM...
Definition: liblwgeom.h:1713

Here is the call graph for this function:

Here is the caller graph for this function: