PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwflags()

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

Construct a new flags bitmask.

Definition at line 471 of file lwutil.c.

472 {
473  lwflags_t flags = 0;
474  if (hasz)
475  FLAGS_SET_Z(flags, 1);
476  if (hasm)
477  FLAGS_SET_M(flags, 1);
478  if (geodetic)
479  FLAGS_SET_GEODETIC(flags, 1);
480  return flags;
481 }
uint16_t lwflags_t
Definition: liblwgeom.h:313
#define FLAGS_SET_GEODETIC(flags, value)
Definition: liblwgeom.h:189
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:187
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:186

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: