PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ asgeojson_bbox_size()

static size_t asgeojson_bbox_size ( int  hasz,
int  precision 
)
static

Handle Bbox.

Definition at line 125 of file lwout_geojson.c.

126 {
127  int size;
128 
129  if (!hasz)
130  {
131  size = sizeof("\"bbox\":[,,,],");
132  size += 2 * 2 * (OUT_MAX_BYTES_DOUBLE + precision);
133  }
134  else
135  {
136  size = sizeof("\"bbox\":[,,,,,],");
137  size += 2 * 3 * (OUT_MAX_BYTES_DOUBLE + precision);
138  }
139 
140  return size;
141 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define OUT_MAX_BYTES_DOUBLE

References OUT_MAX_BYTES_DOUBLE, and precision.

Referenced by asgeojson_point_size(), and asgeojson_triangle_size().

Here is the caller graph for this function: