PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void cu_wkb ( char *  wkt)

Definition at line 61 of file cu_out_wkb.c.

References LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_wkb(), s, WKB_EXTENDED, WKB_HEX, and WKB_XDR.

Referenced by test_wkb_out_circularstring(), test_wkb_out_collection(), test_wkb_out_compoundcurve(), test_wkb_out_curvpolygon(), test_wkb_out_linestring(), test_wkb_out_multipoint(), test_wkb_out_multipolygon(), test_wkb_out_point(), and test_wkb_out_polygon().

62 {
64  if ( s ) free(s);
65  s = (char*)lwgeom_to_wkb(g, WKB_HEX | WKB_XDR | WKB_EXTENDED, NULL);
66  lwgeom_free(g);
67 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
Definition: liblwgeom.h:1706
uint8_t * lwgeom_to_wkb(const LWGEOM *geom, uint8_t variant, size_t *size_out)
Convert LWGEOM to a char* in WKB format.
Definition: lwout_wkb.c:692
Definition: liblwgeom.h:1769
#define WKB_XDR
Definition: liblwgeom.h:1771
char * s
Definition: cu_out_wkb.c:24
#define WKB_HEX
Definition: liblwgeom.h:1772

Here is the call graph for this function:

Here is the caller graph for this function: