PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ set_int_value()

static void set_int_value ( Data__Value *  value,
int64  intval 
)
static

Definition at line 92 of file geobuf.c.

Referenced by encode_properties().

92  {
93  if (intval >= 0) {
94  value->value_type_case = DATA__VALUE__VALUE_TYPE_POS_INT_VALUE;
95  value->pos_int_value = (uint64_t) intval;
96  } else {
97  value->value_type_case = DATA__VALUE__VALUE_TYPE_NEG_INT_VALUE;
98  value->neg_int_value = (uint64_t) labs(intval);
99  }
100 }
int value
Definition: genraster.py:61
Here is the caller graph for this function: