PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ cu_wkb_malformed_in()

static void cu_wkb_malformed_in ( char *  hex)

Definition at line 50 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().

51 {
53  int rv = 0;
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 }
void lwgeom_parser_result_free(LWGEOM_PARSER_RESULT *parser_result)
Definition: lwin_wkt.c:885
#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.
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM...
Definition: liblwgeom.h:2020
Here is the call graph for this function:
Here is the caller graph for this function: