PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwflags()

lwflags_t lwflags ( int  hasz,
int  hasm,
int  geodetic 
)

Construct a new flags bitmask.

Definition at line 477 of file lwutil.c.

478 {
479  lwflags_t flags = 0;
480  if (hasz)
481  FLAGS_SET_Z(flags, 1);
482  if (hasm)
483  FLAGS_SET_M(flags, 1);
484  if (geodetic)
485  FLAGS_SET_GEODETIC(flags, 1);
486  return flags;
487 }
uint16_t lwflags_t
Definition: liblwgeom.h:299
#define FLAGS_SET_GEODETIC(flags, value)
Definition: liblwgeom.h:175
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:173
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:172

References FLAGS_SET_GEODETIC, FLAGS_SET_M, and FLAGS_SET_Z.

Referenced by BOX2D_construct(), gbox_from_string(), gserialized1_get_lwflags(), gserialized2_from_extended_flags(), gserialized2_get_lwflags(), lwcircstring_calculate_gbox_cartesian(), lwcircstring_construct_empty(), lwcircstring_from_gserialized1_buffer(), lwcircstring_from_gserialized2_buffer(), lwcollection_construct(), lwcollection_construct_empty(), lwcollection_from_gserialized1_buffer(), lwcollection_from_gserialized2_buffer(), lwcurvepoly_construct_empty(), lwflags_get_g1flags(), lwflags_get_g2flags(), lwflags_uses_extended_flags(), lwgeom_calculate_gbox_geodetic(), lwgeom_from_gserialized1(), lwgeom_from_gserialized1_buffer(), lwgeom_from_gserialized2(), lwgeom_from_gserialized2_buffer(), lwgeom_from_twkb_state(), lwline_construct_empty(), lwline_from_gserialized1_buffer(), lwline_from_gserialized2_buffer(), lwpoint_construct_empty(), lwpoint_from_gserialized1_buffer(), lwpoint_from_gserialized2_buffer(), lwpoly_construct(), lwpoly_construct_empty(), lwpoly_from_gserialized1_buffer(), lwpoly_from_gserialized2_buffer(), lwtriangle_construct_empty(), lwtriangle_from_gserialized1_buffer(), lwtriangle_from_gserialized2_buffer(), parse_geohash(), ptarray_calculate_gbox_cartesian(), ptarray_construct_copy_data(), ptarray_construct_empty(), ptarray_construct_reference_data(), test_gbox_serialized_size(), test_gbox_utils(), and test_spheroid_area().

Here is the caller graph for this function: