PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ cu_wkb_malformed_in()

static void cu_wkb_malformed_in ( char *  hex)
static

Definition at line 50 of file cu_in_wkb.c.

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

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().

Here is the call graph for this function:
Here is the caller graph for this function: