PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ asgeojson_bbox_size()

static size_t asgeojson_bbox_size ( int  hasz,
int  precision 
)
static

Handle Bbox.

Definition at line 127 of file lwout_geojson.c.

128{
129 int size;
130
131 if (!hasz)
132 {
133 size = sizeof("\"bbox\":[,,,],");
134 size += 2 * 2 * (OUT_MAX_DIGS_DOUBLE + precision);
135 }
136 else
137 {
138 size = sizeof("\"bbox\":[,,,,,],");
139 size += 2 * 3 * (OUT_MAX_DIGS_DOUBLE + precision);
140 }
141
142 return size;
143}
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(), asgeojson_poly_size(), and asgeojson_triangle_size().

Here is the caller graph for this function: