PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ asgeojson_bbox_size()

static size_t asgeojson_bbox_size ( int  hasz,
int  precision 
)
static

Handle Bbox.

Definition at line 123 of file lwout_geojson.c.

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

References OUT_MAX_DIGS_DOUBLE, and precision.

Referenced by asgeojson_collection_size(), asgeojson_line_size(), asgeojson_multiline_size(), asgeojson_multipoint_size(), asgeojson_multipolygon_size(), asgeojson_point_size(), and asgeojson_poly_size().

Here is the caller graph for this function: