Definition at line 62 of file cu_in_wkb.c.
63{
67
68
71
72
75 {
76 printf(
"ERROR: %s\n", pr.
message);
78 exit(0);
79 }
80
81
83
84
86
87
89
90
92
93
96
97
102}
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
#define LWSIZE_GET(varsize)
Macro for reading the size from the GSERIALIZED size attribute.
int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int parse_flags)
Parse a WKT geometry string into an LWGEOM structure.
lwvarlena_t * lwgeom_to_wkb_varlena(const LWGEOM *geom, uint8_t variant)
char * hexbytes_from_bytes(const uint8_t *bytes, size_t size)
LWGEOM * lwgeom_from_wkb(const uint8_t *wkb, const size_t wkb_size, const char check)
WKB inputs must have a declared size, to prevent malformed WKB from reading off the end of the memory...
void lwgeom_parser_result_free(LWGEOM_PARSER_RESULT *parser_result)
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM.
References lwvarlena_t::data, struct_lwgeom_parser_result::errcode, struct_lwgeom_parser_result::errlocation, free(), struct_lwgeom_parser_result::geom, hex_a, hex_b, hexbytes_from_bytes(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkb(), lwgeom_parse_wkt(), lwgeom_parser_result_free(), lwgeom_to_wkb_varlena(), LWSIZE_GET, LWVARHDRSZ, struct_lwgeom_parser_result::message, lwvarlena_t::size, WKB_EXTENDED, and WKB_NDR.
Referenced by test_wkb_in_circularstring(), test_wkb_in_collection(), test_wkb_in_compoundcurve(), test_wkb_in_curvpolygon(), test_wkb_in_linestring(), test_wkb_in_multipoint(), test_wkb_in_multipolygon(), test_wkb_in_point(), and test_wkb_in_polygon().