Definition at line 55 of file cu_out_twkb.c.
56{
58 if ( ! g )
lwnotice(
"input wkt is invalid: %s", wkt);
64}
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
#define LWSIZE_GET(varsize)
Macro for reading the size from the GSERIALIZED size attribute.
char * hexbytes_from_bytes(const uint8_t *bytes, size_t size)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
lwvarlena_t * lwgeom_to_twkb(const LWGEOM *geom, uint8_t variant, int8_t precision_xy, int8_t precision_z, int8_t precision_m)
void lwnotice(const char *fmt,...) __attribute__((format(printf
Write a notice out to the notice handler.
References lwvarlena_t::data, free(), hexbytes_from_bytes(), LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_twkb(), lwnotice(), LWSIZE_GET, LWVARHDRSZ, s, lwvarlena_t::size, and variant.
Referenced by test_twkb_out_collection(), test_twkb_out_linestring(), test_twkb_out_multipoint(), test_twkb_out_multipolygon(), test_twkb_out_point(), and test_twkb_out_polygon().