|
uint8_t | g2flags (int has_z, int has_m, int is_geodetic) |
|
uint8_t | lwflags_get_g2flags (lwflags_t lwflags) |
|
lwflags_t | gserialized2_get_lwflags (const GSERIALIZED *g) |
| Read the flags from a GSERIALIZED and return a standard lwflag integer. More...
|
|
GSERIALIZED * | gserialized2_set_gbox (GSERIALIZED *g, GBOX *gbox) |
| Copy a new bounding box into an existing gserialized. More...
|
|
GSERIALIZED * | gserialized2_drop_gbox (GSERIALIZED *g) |
| Remove the bounding box from a GSERIALIZED. More...
|
|
int | gserialized2_get_gbox_p (const GSERIALIZED *g, GBOX *gbox) |
| Read the box from the GSERIALIZED or calculate it if necessary. More...
|
|
int | gserialized2_fast_gbox_p (const GSERIALIZED *g, GBOX *gbox) |
| Read the box from the GSERIALIZED or return #LWFAILURE if box is unavailable. More...
|
|
uint32_t | gserialized2_get_type (const GSERIALIZED *g) |
| Extract the geometry type from the serialized form (it hides in the anonymous data area, so this is a handy function). More...
|
|
uint32_t | gserialized2_max_header_size (void) |
| Returns the size in bytes to read from toast to get the basic information from a geometry: GSERIALIZED struct, bbox and type. More...
|
|
int32_t | gserialized2_hash (const GSERIALIZED *g) |
| Returns a hash code for the srid/type/geometry information in the GSERIALIZED. More...
|
|
int32_t | gserialized2_get_srid (const GSERIALIZED *g) |
| Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function). More...
|
|
void | gserialized2_set_srid (GSERIALIZED *g, int32_t srid) |
| Write the SRID into the serialized form (it is packed into three bytes so this is a handy function). More...
|
|
int | gserialized2_is_empty (const GSERIALIZED *g) |
| Check if a GSERIALIZED is empty without deserializing first. More...
|
|
int | gserialized2_has_bbox (const GSERIALIZED *gser) |
| Check if a GSERIALIZED has a bounding box without deserializing first. More...
|
|
int | gserialized2_has_extended (const GSERIALIZED *g) |
| Check if a GSERIALIZED has an extended flags section. More...
|
|
int | gserialized2_has_z (const GSERIALIZED *gser) |
| Check if a GSERIALIZED has a Z ordinate. More...
|
|
int | gserialized2_has_m (const GSERIALIZED *gser) |
| Check if a GSERIALIZED has an M ordinate. More...
|
|
int | gserialized2_is_geodetic (const GSERIALIZED *gser) |
| Check if a GSERIALIZED is a geography. More...
|
|
int | gserialized2_ndims (const GSERIALIZED *gser) |
| Return the number of dimensions (2, 3, 4) in a geometry. More...
|
|
GSERIALIZED * | gserialized2_from_lwgeom (LWGEOM *geom, size_t *size) |
| Allocate a new GSERIALIZED from an LWGEOM. More...
|
|
size_t | gserialized2_from_lwgeom_size (const LWGEOM *geom) |
| Return the memory size a GSERIALIZED will occupy for a given LWGEOM. More...
|
|
LWGEOM * | lwgeom_from_gserialized2 (const GSERIALIZED *g) |
| Allocate a new LWGEOM from a GSERIALIZED. More...
|
|
const float * | gserialized2_get_float_box_p (const GSERIALIZED *g, size_t *ndims) |
| Point into the float box area of the serialization. More...
|
|
int | gserialized2_peek_gbox_p (const GSERIALIZED *g, GBOX *gbox) |
|
int | gserialized2_peek_first_point (const GSERIALIZED *g, POINT4D *out_point) |
|