PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
void lwgeom_trim_bits_in_place | ( | LWGEOM * | geom, |
int32_t | prec_x, | ||
int32_t | prec_y, | ||
int32_t | prec_z, | ||
int32_t | prec_m | ||
) |
Trim the bits of an LWGEOM in place, to optimize it for compression.
Sets all bits to zero that are not required to maintain a specified number of digits after the decimal point. Negative precision values indicate digits before the decimal point do not need to be preserved.
geom | input geometry |
prec_x | precision (digits after decimal point) in x dimension |
prec_y | precision (digits after decimal point) in y dimension |
prec_z | precision (digits after decimal point) in z dimension |
prec_m | precision (digits after decimal point) in m dimension |
Definition at line 2518 of file lwgeom.c.
References lwgeom_has_m(), lwgeom_has_z(), lwpointiterator_create_rw(), lwpointiterator_destroy(), lwpointiterator_has_next(), lwpointiterator_modify_next(), lwpointiterator_peek(), POINT4D::m, trim_preserve_decimal_digits(), POINT4D::x, POINT4D::y, and POINT4D::z.
Referenced by ST_QuantizeCoordinates(), and test_trim_bits().