Definition at line 53 of file cu_in_twkb.c.
58 size_t twkb_size_a, twkb_size_b;
65 printf(
"ERROR: %s\n", pr.
message);
void lwgeom_free(LWGEOM *geom)
char * hexbytes_from_bytes(const uint8_t *bytes, size_t size)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_from_twkb(const uint8_t *twkb, size_t twkb_size, char check)
WKB inputs must have a declared size, to prevent malformed WKB from reading off the end of the memory...
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)
uint8_t * lwgeom_to_twkb(const LWGEOM *geom, uint8_t variant, int8_t precision_xy, int8_t precision_z, int8_t precision_m, size_t *twkb_size)
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM.
References struct_lwgeom_parser_result::errcode, struct_lwgeom_parser_result::errlocation, struct_lwgeom_parser_result::geom, hex_a, hex_b, hexbytes_from_bytes(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_twkb(), lwgeom_parse_wkt(), lwgeom_parser_result_free(), lwgeom_to_twkb(), struct_lwgeom_parser_result::message, precision, and variant.
Referenced by test_twkb_in_collection(), test_twkb_in_linestring(), test_twkb_in_multilinestring(), test_twkb_in_multipoint(), test_twkb_in_multipolygon(), test_twkb_in_point(), test_twkb_in_polygon(), and test_twkb_in_precision().