PostGIS  2.5.7dev-r@@SVN_REVISION@@
lwout_wkb.c File Reference
#include <math.h>
#include "liblwgeom_internal.h"
#include "lwgeom_log.h"
Include dependency graph for lwout_wkb.c:

Go to the source code of this file.

Functions

static uint8_tlwgeom_to_wkb_buf (const LWGEOM *geom, uint8_t *buf, uint8_t variant)
 
static size_t lwgeom_to_wkb_size (const LWGEOM *geom, uint8_t variant)
 
char * hexbytes_from_bytes (const uint8_t *bytes, size_t size)
 
static int lwgeom_wkb_needs_srid (const LWGEOM *geom, uint8_t variant)
 
static uint32_t lwgeom_wkb_type (const LWGEOM *geom, uint8_t variant)
 
static uint8_tendian_to_wkb_buf (uint8_t *buf, uint8_t variant)
 
static int wkb_swap_bytes (uint8_t variant)
 
static uint8_tinteger_to_wkb_buf (const int ival, uint8_t *buf, uint8_t variant)
 
static uint8_tdouble_to_wkb_buf (const double d, uint8_t *buf, uint8_t variant)
 
static size_t empty_to_wkb_size (const LWGEOM *geom, uint8_t variant)
 
static uint8_tempty_to_wkb_buf (const LWGEOM *geom, uint8_t *buf, uint8_t variant)
 
static size_t ptarray_to_wkb_size (const POINTARRAY *pa, uint8_t variant)
 
static uint8_tptarray_to_wkb_buf (const POINTARRAY *pa, uint8_t *buf, uint8_t variant)
 
static size_t lwpoint_to_wkb_size (const LWPOINT *pt, uint8_t variant)
 
static uint8_tlwpoint_to_wkb_buf (const LWPOINT *pt, uint8_t *buf, uint8_t variant)
 
static size_t lwline_to_wkb_size (const LWLINE *line, uint8_t variant)
 
static uint8_tlwline_to_wkb_buf (const LWLINE *line, uint8_t *buf, uint8_t variant)
 
static size_t lwtriangle_to_wkb_size (const LWTRIANGLE *tri, uint8_t variant)
 
static uint8_tlwtriangle_to_wkb_buf (const LWTRIANGLE *tri, uint8_t *buf, uint8_t variant)
 
static size_t lwpoly_to_wkb_size (const LWPOLY *poly, uint8_t variant)
 
static uint8_tlwpoly_to_wkb_buf (const LWPOLY *poly, uint8_t *buf, uint8_t variant)
 
static size_t lwcollection_to_wkb_size (const LWCOLLECTION *col, uint8_t variant)
 
static uint8_tlwcollection_to_wkb_buf (const LWCOLLECTION *col, uint8_t *buf, uint8_t variant)
 
uint8_tlwgeom_to_wkb (const LWGEOM *geom, uint8_t variant, size_t *size_out)
 Convert LWGEOM to a char* in WKB format. More...
 
char * lwgeom_to_hexwkb (const LWGEOM *geom, uint8_t variant, size_t *size_out)
 

Variables

static char * hexchr = "0123456789ABCDEF"